#P6060. [加油武汉] 传染病研究
[加油武汉] 传染病研究
Description
After learning that pneumonia broke out in City W, scientists immediately began intensive research.
(The following part is not rigorous science. Do not take it seriously outside of solving this problem.)
Suppose a certain virus has a spreading ability on day . The meaning of this function is the number of divisors of . For example, .
Now you are given the total number of spreading days and an influence constant . You need to compute , that is, .
Since the answer may be very large, output it modulo .
Sample Explanation
.
has divisor: ;
has divisors: ;
has divisors: ;
has divisors: ;
has divisors: .
The total is .
Input Format
This problem contains multiple test cases.
The first line contains an integer , indicating the number of test cases.
Each of the next lines contains two integers , with the meaning as described above.
Output Format
Output lines in total, where each line is the answer for one test case.
1
5 2
15
Hint
- For of the testdata, .
- There is another of the testdata where .
- For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号