A robot's initial position is (0,0) and it can only move along X-axis. It has N moves to make and in each move, it will select one of the following options:
Your task is to calculate ∑(abs(X)+abs(Y)) for all reachable (X,Y).
Note: Here, abs denotes the absolute value.
See the sample explanation for better understanding.
Input format
Output format
Print T lines. For each test case, print a single integer as described in the problem statement.
Constraints
1≤T≤20000
1≤N≤1e9
He is initially at (0,0). He has 1 move to make, the positions where he can end up are (-1,0),(1,0) and (0,0).
∑(abs(x)+abs(y))
=abs(-1)+abs(0)+abs(1)+abs(0)+abs(0)+abs(0)
=1+0+1+0+0+0
=2