Coprimality
Context: FIT1058_MOC · · characterised by · decides which elements have a modular inverse
Quick Revision
- 🎯 Objective: coprime iff ➔ share no factor but 1.
- 📦 Core Components: not primality ➔ Bézout ➔ tested by Euclidean Algorithm.
- ⚡ Key Constraint: invertible in iff ; coprimality is pairwise, not transitive.
📝 Core
1. The Relation
- Definition ➔ coprime — no shared factor but 1.
- Not primality ➔ 21, 25 coprime though neither prime.
- Prime case ➔ prime ⟹ coprime unless .
2. Bézout Characterisation
- Iff ➔ coprime .
- Why ➔ = smallest positive Integer Linear Combination = 1 achievable.
- Test ➔ Euclidean Algorithm for gcd; Extended Euclidean Algorithm for .
When It Flips: the payoff theorem — has a Modular Inverse in iff ; the Bézout coefficient is the inverse. Coprimality sidesteps factorisation entirely, so it is far easier than primality.
📊 Exam Execution Trace
Manual Execution Trace
:
| Step / State | Pair | Reduce |
|---|---|---|
| 0 (Init) | — | |
| 1 | ||
| 2 | ||
| 3 | gcd | → coprime |
⚠️ Common Mistakes
- 💡 Coprime ≠ prime ➔ 21, 25 are coprime with neither prime; the Bézout coefficient is the modular inverse ().
🧠 Active Recall
Prove coprime iff for some integers .
- Hint: gcd = smallest positive combination.
Answer
- Short answer: coprime ⟺ ⟺ 1 is the smallest positive ⟺ .
- Why: Least positive ➔ 1 is minimal, so attaining it forces gcd 1.
Why is coprimality easier than primality, and what does it determine in ?
- Hint: No factorisation needed.
Answer
- Short answer: is testable by Euclid without factorising; invertible in iff .
- Why: ➔ the invertible elements are exactly those coprime to , counted by .