#P7277. 平凡点滴
平凡点滴
Description
He writes down a function .
It is defined as follows:
Let be the maximum exponent among all prime factors in the prime factorization of . For example, .
Note: In this problem, assume . The samples and testdata have been corrected.
Then .
Here are parameters given to you.
He wants you to compute
$$\sum\limits_{i=1}^n \sum\limits_{j=1}^n f(\gcd(i,j))$$and take it modulo .
Input Format
The first line contains three positive integers .
Output Format
One line containing one non-negative integer, representing the answer.
4 4 4
1328
6 6 6
410114
10000000000 114514 100
603074925
Hint
For of the testdata, ;
For of the testdata, ;
For of the testdata, , , .
In addition, one set of hack testdata from
/user/154560
Translated by ChatGPT 5
京公网安备 11011102002149号