You have a sequence 2,5,16,65,........Given an integer n as input ,you have to find the value at Nth position in the sequence. For example if N=1 then 1st value in sequence is 2 ,so '2' should be your answer.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains an integers N as input.
For each test case, print number at Nth position in the sequence in new line as your answer.
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.