Primitive Root
Context: FIT1058_MOC Β· a generator of Β· powers reach only at the full exponent Β· gives the largest range for a one-way function
Quick Revision
- π― Objective: whose powers reach 1 no earlier than β a generator of .
- π¦ Core Components: order β powers exhaust β of them.
- β‘ Key Constraint: exists only for ; no efficient algorithm to find one.
π Core
1. The Definition
- Primitive root β for all .
- Generator β then run through all of .
- Example β 3 mod 7 gives (all six); 2 gives (only , not primitive).
2. Existence
- Theorem β primitive roots exist exactly for ( odd prime).
- No root β 8 has none ( each squares to 1).
- Must be in β non-unitsβ powers hit 0 and stick.
3. Count & Difficulty
- How many β exactly if any exist.
- Finding β no known polynomial-time algorithm.
Key identities:
βοΈ Core Decision Matrix
| Primitive root? | Reason | |
|---|---|---|
| prime | yes | , maximal |
| yes | characterisation | |
| 8 () | no | excluded form |
| count | if any exist |
When It Flips: a primitive root's powers cover all of β the widest spread β making hardest to invert, so a primitive root of a large prime is chosen for the One-Way Function behind Diffie-Hellman Key Agreement.
π Exam Execution Trace
Manual Execution Trace
Powers of 2 mod 11 ():
| Step / State | ||
|---|---|---|
| 0 (Init) | β | β |
| 1 | 1β5 | 2,4,8,5,10 |
| 2 | 6β10 | 9,7,3,6,1 |
| 3 | first 1 |
β οΈ Common Mistakes
- π‘ Existence restricted β only have primitive roots; 8 does not (all of have order ).
π§ Active Recall
Define a primitive root and verify 3 is one mod 7 but 2 is not.
- Hint: Order = .
Answer
- Short answer: Powers reach 1 only at ; gives all six, hits 1 at .
- Why: Generator β 3βs powers exhaust ; 2βs cover only .
Why does 8 have no primitive root, and why are primitive roots wanted in cryptography?
- Hint: Existence form + max range.
Answer
- Short answer: each square to 1 (order ); only have roots.
- Why: Widest spread β powers span all of , making hardest to invert.