Euler's Theorem: Formula, Examples and Applications
Euler's Theorem connects coprime numbers with modular powers. It states that if a and n are positive integers with gcd(a, n) = 1, then a raised to the power φ(n) leaves remainder 1 when divided by n. This page explains the theorem, Euler's totient function, exponent reduction, conditions, examples and common calculation methods.
What Is Euler's Theorem?
The value φ(n) counts the positive integers from 1 to n that are relatively prime to n. The theorem allows powers of a to be reduced in modular calculations. For example, since φ(10) = 4 and gcd(3, 10) = 1, 3^4 ≡ 1 (mod 10).
Euler's Theorem Formula & Tricks
Important Formulas
The remainder of a raised to φ(n) is 1 when a and n are coprime.
If p is prime, every integer from 1 to p − 1 is coprime to p.
This gives the count of integers up to p^k that are relatively prime to p^k.
Use each distinct prime factor of n once in the product.
Quick Tricks
When gcd(a, n) = 1, divide the exponent by φ(n) and use the remainder. If the remainder is r, then a^m ≡ a^r (mod n), with the case r = 0 treated as a^φ(n).
Factor n first, then apply φ(n) = n multiplied by (1 − 1/p) for every distinct prime factor p.
Euler's Theorem cannot be applied directly if gcd(a, n) is not 1. A common factor between the base and modulus invalidates the theorem's required condition.
Euler's Theorem Concepts
Condition and statement of Euler's Theorem
For n > 1, if a and n have no common factor other than 1, then a^φ(n) ≡ 1 (mod n). The result concerns the remainder after division by n, not equality as ordinary integers.
Finding Euler's totient function
For n = p^k, use φ(p^k) = p^k − p^(k−1). For a general factorisation, use φ(n) = n∏(1 − 1/p), where the product is over the distinct prime divisors p of n.
Reducing large powers modulo n
If m = qφ(n) + r, then a^m = (a^φ(n))^q a^r ≡ a^r (mod n). When r = 0, use a^m ≡ 1 (mod n), rather than replacing the power by a^0 during a modular-cycle calculation.
When Euler's Theorem does not apply
The condition is essential because the proof and congruence depend on multiplication by a being invertible modulo n. In such cases, simplify powers by direct modular calculation or use another method appropriate to the factorisation of the modulus.
Euler's Theorem Video Lessons
Watch short topic-wise lessons for quick revision.
Remainder Tricks: Fermat and Euler
Learn how Fermat’s pattern and Euler’s approach simplify remainder calculations for powers, including the key conditions and steps needed to apply these methods accurately.
Practice Euler's Theorem Questions
Practise published questions related to this topic.
Euler's Theorem Quick Quiz
Attempt 5 questions and check your score instantly.
Keep practising
Practice more Euler's Theorem questions in the PrepShots app and continue from your current topic.
Practice More Questions - Start ₹1 Trial →Quick Revision Notes
Euler's Theorem Revision Points
Use these rules for quick revision of the theorem and its applications.
- Euler's Theorem: if gcd(a, n) = 1, then a^φ(n) ≡ 1 (mod n).
- φ(p) = p − 1 for a prime p.
- φ(p^k) = p^k − p^(k−1).
- For n with distinct prime factors p₁, p₂, ..., φ(n) = n∏(1 − 1/pᵢ).
- Check gcd(a, n) = 1 before reducing an exponent using φ(n).
- If m = qφ(n) + r, then a^m ≡ a^r (mod n) for a coprime to n.
- If the base and modulus are not coprime, Euler's Theorem cannot be applied directly.
Euler's Theorem FAQs
What is the formula for Euler's Theorem?
If gcd(a, n) = 1, then a^φ(n) ≡ 1 (mod n), where φ(n) is Euler's totient function.
What is φ(20), and how is it calculated?
Since 20 = 2² × 5, φ(20) = 20(1 − 1/2)(1 − 1/5) = 8.
Find 2^100 mod 9 using Euler's Theorem.
gcd(2, 9) = 1 and φ(9) = 6. Since 100 leaves remainder 4 when divided by 6, 2^100 ≡ 2^4 = 16 ≡ 7 (mod 9).
Can Euler's Theorem be applied to 4^k mod 12?
No. gcd(4, 12) = 4, not 1, so Euler's Theorem does not apply directly.
What is the difference between Euler's Theorem and Fermat's Little Theorem?
Euler's Theorem uses any modulus n with gcd(a, n) = 1: a^φ(n) ≡ 1 (mod n). Fermat's Little Theorem is the prime-modulus case: if p is prime and p does not divide a, then a^(p−1) ≡ 1 (mod p).
What happens when the exponent is a multiple of φ(n)?
If gcd(a, n) = 1 and m is a positive multiple of φ(n), then a^m ≡ 1 (mod n). For example, 3^8 ≡ 1 (mod 10) because φ(10) = 4.
