Problem C. Happy 2004
时间限制 2 ms
内存限制 32 MB
Consider a positive integer X,and let S be the sum of all positive integer divisors of 2004^X. Your job is to determine S modulo 29 (the rest of the division of S by 29).
Take X = 1 for an example. The positive integer divisors of 2004^1 are 1, 2, 3, 4, 6, 12, 167, 334, 501, 668, 1002 and 2004. Therefore S = 4704 and S modulo 29 is equal to 6.
输入数据
输出数据
For each test case, in a separate line, please output the result of S modulo 29.
样例输入
样例输出
$ Mathjax font initiator $