Find N-th term in the series
Submissions: 1190   Accuracy:

34.03%

  Difficulty: Basic   Marks: 1

Given a series 9, 33, 73, 129...  Find the N-th term of the series.

Input:
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains a number N as input.

Output:
For each test case, print Nth number of series in new line.

Constraints:
1 <= T <= 104
1 <= N < 109

Example:
Input:
2

4
5

Output:
129
201

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

Author: arun03


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.