CRB and Candies

Time Limit: 1000ms
Memory Limit: 65536KB
This problem will be judged on HDU. Original ID: 5407
64-bit integer IO format: %I64d      Java class name: Main

Description

CRB has $N$ different candies. He is going to eat $K$ candies.
He wonders how many combinations he can select.
Can you answer his question for all $K$(0 ≤ $K$ ≤ $N$)?
CRB is too hungry to check all of your answers one by one, so he only asks least common multiple(LCM) of all answers.

Input

There are multiple test cases. The first line of input contains an integer $T$, indicating the number of test cases. For each test case there is one line containing a single integer $N$.
1 ≤ $T$ ≤ 300
1 ≤ $N$ ≤ $10^{6}$

Output

For each test case, output a single integer – LCM modulo 1000000007($10^{9}+7$).

Sample Input

5
1
2
3
4
5

Sample Output

1
2
3
12
10

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .