Please enter your email address or userHandle.
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.
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) .
For each test case output a new line with a single integer which should be the the number at the Xth index .
1 ≤ T ≤ 200
1 ≤ X ≤ 200
In the first testcase contains the number 8 , which means we have to find the number at the 8th index of the given series .
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.