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
yescharacterisation
8 ()noexcluded form
countif 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)β€”β€”
11–52,4,8,5,10
26–109,7,3,6,1
3first 1

⚠️ Common Mistakes

  • πŸ’‘ Existence restricted βž” only have primitive roots; 8 does not (all of have order ).

🧠 Active Recall