BETA

Difficulty Level: Basic

Submissions: 604 Accuracy:

27.32%

Evaluate the expression
     

Given a number N, write a program to evaluate below expression:
            f(n-1)*f(n+1) - f(n)*f(n)

Input:
First line of input contains a single integer T which denotes the number of test cases. Then T test cases follows. First line of each test case contains a single integer N.

Output:
For each test, print the value after evaluating above expression for N.

Constraints:
1<=T<=100
1<=N<=105

Examples:
Input:
1
5
Output:
-1

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Harsh Agarwal

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.