You are given an integer . Your task is to count how many triples of integers (a, b, c) satisfy the following conditions:
1 \le a, b, c \le n;
\gcd(a,b,c) = 1;
a, b, c are three consecutive elements of an arithmetic progression, i.e. |b - a| = |c - b|, and the numbers , and are pairwise distinct.
The first line contains one integer t~(1 \le t \le 10^3) — the number of test cases.
Each test case contains one integer n~(3 \le n \le 10^6).
There are no constraints on for the final subtask.
For each test case, print the number of triples that satisfy the conditions.
Example 1
Subtask ( points) : (1 \le \sum n \le 100)
Subtask ( points) : (1 \le \sum n \le 1000)
Subtask ( points) : (1 \le \sum n \le 10^4)
Subtask ( points) : (1 \le \sum n \le 10^6)
Subtask ( points) : No additional constraints