Euler Totient Function
Context: FIT1058_MOC Β· count of integers in coprime to Β· Β· multiplicative, computed from the prime factorisation
Quick Revision
- π― Objective: counts integers in coprime to β , the invertible elements.
- π¦ Core Components: β β multiplicative.
- β‘ Key Constraint: easy with the factorisation, as hard as factoring without it.
π Core
1. The Function
- Definition β .
- Meaning β the count of elements of with a Modular Inverse.
- Examples β (), .
2. The Three Rules
- Primes β (max, attained iff prime).
- Prime powers β .
- Multiplicative β (, RSA).
3. Product Formula
- From factorisation β over distinct primes.
Key identities:
βοΈ Core Decision Matrix
| Note | ||
|---|---|---|
| prime | maximum | |
| prime power | ||
| (distinct) | RSA | |
| general | from factorisation |
When It Flips: is the size of the multiplicative group β the exponent in Euler's theorem and the order of a generator. Easy given the factorisation, hard without β the asymmetry RSA rests on.
π Exam Execution Trace
Manual Execution Trace
, :
| Step / State | Prime power | |
|---|---|---|
| 0 (Init) | β | β |
| 1 | ||
| 2 | ||
| 3 |
β οΈ Common Mistakes
- π‘ βMultiplicativeβ needs coprimality β only when , not for all ; the product ranges over distinct primes.
π§ Active Recall
State the three rules for and compute .
- Hint: Prime power + multiplicativity.
Answer
- Short answer: , , multiplicative; .
- Why: Product formula β .
Why is easy given the factorisation but believed hard in general?
- Hint: Factoring-hard.
Answer
- Short answer: The rules assemble from the prime factorisation; without it, computing is as hard as factoring.
- Why: Crypto asymmetry β the legitimate party knows the factors, an attacker does not.