Please enter your email address or userHandle.
Given a number N, write a program to evaluate below expression:
f(n-1)*f(n+1) - f(n)*f(n)
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.
For each test, print the value after evaluating above expression for N.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.