You are given a number $$$n$$$. Consider all pairs of natural numbers $$$a$$$ and $$$b$$$.
Your task is to find out how many distinct values of number $$$m$$$ satisfy the following equation:
$$$$$$ \forall (a, b) \in \mathbb{N}, (a+b)^n \equiv a^n + b^n \pmod m$$$$$$
The first line contains a single integer number $$$(1 \le T \le 3 \times 10^5)$$$, the number of test cases.
Each test case contains a single integer $$$(2 \le n \le 10^6)$$$.
You should print a single integer number (the distinct possible values of $$$m$$$ mod $$$1000000007$$$) for each testcase.
234
4 2
| Название |
|---|


