You have infinite cards for each number between 1 and N (inclusive of them). Your task is to select three integers such that after sorting them in ascending order, the difference between the adjacent number is less than or equal to two. Find the number of ways to choose three numbers and print them.
Note: The order of numbers does not matter.
Input format
Output format
Print T lines, one for each test case, denoting the number of ways.
Constraints
1≤T≤20000
1≤N≤200000
For N=1 there is only one way:
For N=3
These are the 10 possible ways.