#P11000. [2015杭电多校]PowMod
[2015杭电多校]PowMod
PowMod
Problem Description
Declare: is a square-free number. is the Euler's totient function . find: There are infinite number of
Input
Multiple test cases(test cases ), one line per case. Each line contains three integers, and .
Output
For each case, output a single line with one integer, ans.
Sample Input
1 2 6
1 100 9
Sample Output
4
7
Author
HIT
Source
2016 Multi-University Training Contest 1