Euler's Φ Function

 

Definition

ϕ(n) is the number of integers between 0 and n-1 who is coprime with n. ϕ(n):=|a:0a<n(a,n)=1|

Properties

  1. Let a be an integer comprime with n. Then aΦ(n)1modn
  2. (m,n)=1 ϕ(mn)=ϕ(m)ϕ(n)
  3. dnΦ(d)=n