定义
欧拉函数 ϕ(n)=count(p),p∈[1,n] AND gcd(p,n)=1 ,其中 count(p) 表示满足上述条件 p 的数目。
公式
其中, p 是
性质
如果
gcd(m,n)=1
ϕ(mn)=ϕ(m)ϕ(n)
链接
更多解释:
https://en.wikipedia.org/wiki/Euler%27s_totient_function
题目:
http://www.geeksforgeeks.org/eulers-totient-function-for-all-numbers-smaller-than-or-equal-to-n/