Euler’s totient function, written ϕ(N), counts the positive integers that are coprime with N. Two numbers are coprime when their only shared positive divisor is 1. section 6.3.1
In RSA, the function supplies the order of the multiplicative group modulo the public modulus:
- For N = p × q, where p and q are secret large primes, ϕ(N) = (p − 1) × (q − 1). section 6.3.1
- That order helps derive the private exponent d as the inverse of the public exponent e modulo ϕ(N). section 6.3.1
- Calculating ϕ(N) is difficult without knowing how N factors into p and q, supporting RSA’s reliance on the factorization problem. section 6.3.1
A small coprimality check
The numbers 5 and 6 are coprime because only 1 divides both. The numbers 10 and 15 are not, because 1 and 5 divide both. section 6.3.1

