#Lutece2497. An Easy Math Problem II
An Easy Math Problem II
Migrated from Lutece 2497 An Easy Math Problem II
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给定 这个正整数,计算下式的值
表示 与 的最大公约数。
表示 到 中与 互质的数的个数,即 。
Input
第一行有一个正整数 。
下面有 组测试用例,每个测试用例包含一个正整数 。
Output
对于每个测试用例,输出一个整数表示该式子对 的取模后的值。
Samples
3
1
2
3
1
9
45
Resources
2020 UESTC ICPC Training for Math and Geometry