Euler's Totient Function Calculator — Count Integers Coprime to n
Our Euler's Totient Function Calculator computes φ(n), the number of integers from 1 to n that share no common factor with n, by finding n's prime factorization and applying the product formula φ(n) = n × ∏(1 − 1/p) over each distinct prime factor p — the same method used throughout number theory and RSA cryptography.
Quick Answer
φ(n) counts the integers from 1 to n coprime to n. Enter n below to see φ(n), computed from n's prime factorization via φ(n) = n × ∏(1 − 1/p).
How to Use the Euler's Totient Function Calculator — φ(n) Online
- 1
Enter a positive whole number n.
- 2
Click 'Calculate' to see φ(n) along with n's full prime factorization.
- 3
Review the product formula breakdown showing exactly how φ(n) was derived.
Why Use Euler's Totient Function Calculator — φ(n) Online?
Euler's totient function, introduced by Leonhard Euler, counts how many integers from 1 to n are 'coprime' to n (share no common factor). It has a clean product formula once you know n's prime factorization: φ(n) = n × ∏(1 − 1/p), multiplying over each distinct prime factor p. This function is the mathematical heart of RSA cryptography — the security of RSA key generation depends on φ(n) being easy to compute when you know n's prime factors, but essentially impossible to compute (or use to factor n) when you don't.
Frequently Asked Questions
Related Tools
Primitive Root Calculator — Find a Generator mod n
Find the smallest primitive root modulo n — a generator of the multiplicative group mod n — with existence checking via Euler's totient function. Free calculator.
Modular Exponentiation Calculator — Fast bᵉ mod m Online
Calculate bᵉ mod m for arbitrarily large exponents using fast square-and-multiply exponentiation. Free calculator with BigInt precision, essential for cryptography.
Modular Multiplicative Inverse Calculator — Solve ax ≡ 1 (mod m)
Find the modular multiplicative inverse of a modulo m using the extended Euclidean algorithm. Free calculator with BigInt precision and existence check.
Group Theory Order Calculator — Element Order in ℤₙ Online
Find the order of an element in (ℤₙ, +) or (ℤ/nℤ)ˣ, with a Lagrange's theorem divisibility check shown as a step. Free calculator, instant results.