A function f is defined as follows F(n)= (1) +(2*3) + (4*5*6) ... n. Given an integer n the task is to print the F(n)th term.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test contains an integer n.
For each test case print the nth term of the sequence. .
1 <= T <= 10
1 <= N <= 10
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.