Interesting Series
Easy Accuracy: 32.64% Submissions: 423 Points: 2

Given a series of numbers  6 , 14, 36, 98, 276... Identify the pattern in the series and help to identify integers at other indices. Indices are starting from 1.

Input: 
The first line of the input contains an integer T denoting the number of test cases. The description of each testcase follows. Each test case contains a single line with 1 integer X (index) .

Output:
For each test case output a new line with a single integer which should be the the number at the Xth index .

Constraints:
1 ≤ T ≤ 200
1 ≤ X ≤ 200

Example:     
Input:
4

12
45
67
Output:

6818
535538
2954312741735205787476
92709463148045411038351601823516

Explanation:
In the first testcase contains the number 8 , which means we have to find the number at the 8th index of the given series .

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.