Euler's Totient Function
Euler's totient counts the integers from 1 to that are coprime to . It is a key ingredient of RSA encryption and Euler's theorem.
LaTeX
\varphi(n)=n\prod_{p\mid n}\left(1-\frac{1}{p}\right)Variables
- count of integers 1..n coprime to n
- distinct prime divisors of n
Example
Find .
- Primes dividing 36: .
- .
Answer: .