φ(n) = n∏(1 − 1/p)Variables
- n
- positive integer
- p
- distinct prime divisors
Reference details
- Subject
- Number Theory
- Topic
- modular arithmetic
- Plain text
phi(n)=n product(1-1/p)
Number Theory · modular arithmetic
Computes Euler’s totient from the distinct prime divisors of n.
φ(n) = n∏(1 − 1/p)phi(n)=n product(1-1/p)