Siddhant made a special series and named it as G.F Series.The series follows this trend Tn=(Tn-2)2-(Tn-1) in which the first and the second term are 0 and 1 respectively.Help Siddhant to find upto N terms of the series .
First line contain T, number of test cases.Second line contains an integer N upto which series will run.
Print all the terms which will occur in the series(upto N).
1 <= T <= 20
1 <= N <= 30
0 1 -1
0 1 -1 2 -1 5
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.