#Z01710. a的b次方的所有因子的和对p取余数
a的b次方的所有因子的和对p取余数
题目描述
Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901).
输入格式
The only line contains the two natural numbers A and B, (0
输出格式
The only line of the output will contain S modulo 9901.
2 3
15
提示
2^3 = 8. The natural divisors of 8 are: 1,2,4,8. Their sum is 15. 15 modulo 9901 is 15 (that should be output).
豫公网安备41072702000346号