Professional Documents
Culture Documents
Geeksforgeeks Scholarship Exam
Geeksforgeeks Scholarship Exam
Input:First line of input contains testcase T. For each testcase, there will be
a single line containing a number N as input.
Output:For each testcase, print the resultant of the equation.
Constraints:1<=T<=1001<=N<=105
Example:Input:41212199
Output:15597861328350
Explanation:For testcase 2, the resultant of the equation for N = 2 comes
out as 5.