F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

CRB and Candies

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1459    Accepted Submission(s): 706


Problem 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 ¨C LCM modulo 1000000007($10^{9}+7$).
 

Sample Input
5 1 2 3 4 5
 

Sample Output
1 2 3 12 10
 

Author
KUT£¨DPRK£©
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 08:55:19, Gzip enabled