Series X1
Submissions: 2072   Accuracy:

67.91%

  Difficulty: Basic   Marks: 1

Given a series of numbers 2, 10, 30, 68, 130.., Identify the pattern in the series and help to identify the integers at other indices. Indices are starting from 1.

Input:
The input line contains 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 testcase in new line, print number at the Xth index .

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

Example:    
Input:
4

12
200
145

Output:
520
1740
8000200
3048770

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Diksha Singhal
Author: diksha1812


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.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.