#P5153. 简单的函数
简单的函数
Description
HKE once discovered a very interesting function.
Define . For , let be the smallest positive integer such that is not divisible by , then .
For example, when , we have , and .
Now, HKE wants to know the value of . The answer can be large; please take it modulo .
Input Format
A single line containing a positive integer .
Output Format
A single line with the required result.
4
6
Hint
- For of the testdata, .
- For of the testdata, .
- For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号