#P7462. [2017年杭电多校]RXD and math
[2017年杭电多校]RXD and math
RXD and math
Problem Description
RXD is a good mathematician. One day he wants to calculate:
$$\sum_{i = 1}^{n^k}{\mu^2(i) \times \lfloor \sqrt{\frac{n^k}{i}} \rfloor} $$output the answer module .
are different prime numbers
Input
There are several test cases, please keep reading until EOF. There are exact 10000 cases. For each test case, there are 2 numbers .
Output
For each test case, output "Case #x: y", which means the test case number and the answer.
Sample Input
10 10
Sample Output
Case #1: 999999937
Source
2017 Multi-University Training Contest - Team 3