Quiz
Equation Sum
Submissions: 257   Accuracy:

55.64%

  Max. Score:

20

You are given an equation:

You need to find Sn:

Input:
The first line of the input contains a single integer T, denoting the number of test cases. Then T test case follows. Each testcase contains a single input n.

Output:
For each testcase, print the value of Sn for the given n.

Constraints:
1<=T<=200
1<=n<=104

Example:

Input:
3

1
2
3

Output:
1
6
15


to report an issue on this page.