You are given an integer $$$n$$$. You have to count the number of possible tuples $$$(a,b,c)$$$ such that $$$a \le b \le c$$$ and $$$a^2 + b^2 = c^2$$$ where $$$1 \le a \le n$$$.
The first line contains the number $$$t$$$ $$$(1 \le t \le 10^5)$$$ — the number of test cases.
Each of the following $$$t$$$ lines contains one integer $$$n$$$ $$$(1 \le n \le 10^5)$$$.
Print the number of possible tuples $$$(a,b,c)$$$ such that $$$a \le b \le c$$$ and $$$a^2 + b^2 = c^2$$$ where $$$1 \le a \le n$$$.
3121315
11 12 16
For test case 2, the expected tuples are listed below:
| Название |
|---|


