ConceptComplete

Primitive Roots - Key Properties

When primitive roots exist, they satisfy remarkable properties that facilitate computations and reveal deep structure in modular arithmetic. Understanding these properties is essential for applications in cryptography and computational number theory.

TheoremNumber of Primitive Roots

If primitive roots exist modulo nn, then there are exactly ϕ(ϕ(n))\phi(\phi(n)) incongruent primitive roots modulo nn.

These are precisely the powers gkg^k where gcd(k,ϕ(n))=1\gcd(k, \phi(n)) = 1 and gg is any primitive root modulo nn.

This formula follows from the structure of cyclic groups: a generator raised to a power coprime to the group order remains a generator.

ExampleCounting Primitive Roots

For n=7n = 7, we have ϕ(7)=6\phi(7) = 6 and ϕ(ϕ(7))=ϕ(6)=2\phi(\phi(7)) = \phi(6) = 2.

So there are exactly 22 primitive roots modulo 77 in the range 11 to 66.

Since 33 is a primitive root, the primitive roots are 3k3^k where gcd(k,6)=1\gcd(k, 6) = 1:

  • k=1k = 1: 313(mod7)3^1 \equiv 3 \pmod{7}
  • k=5k = 5: 355(mod7)3^5 \equiv 5 \pmod{7}

Indeed, {3,5}\{3, 5\} are the only primitive roots modulo 77 in {1,2,,6}\{1, 2, \ldots, 6\}.

TheoremProperties of Indices

Let gg be a primitive root modulo nn. The index function satisfies:

  1. Homomorphism: indg(ab)indg(a)+indg(b)(modϕ(n))\text{ind}_g(ab) \equiv \text{ind}_g(a) + \text{ind}_g(b) \pmod{\phi(n)}
  2. Power rule: indg(ak)kindg(a)(modϕ(n))\text{ind}_g(a^k) \equiv k \cdot \text{ind}_g(a) \pmod{\phi(n)}
  3. Uniqueness: Each aa coprime to nn has a unique index modulo ϕ(n)\phi(n)
  4. Inverse: indg(a1)indg(a)(modϕ(n))\text{ind}_g(a^{-1}) \equiv -\text{ind}_g(a) \pmod{\phi(n)}

These properties make indices behave like logarithms, converting multiplication to addition.

ExampleUsing Index Properties

With base g=2g = 2 modulo 1111 (primitive root), we have ϕ(11)=10\phi(11) = 10.

Compute powers of 22 modulo 1111: 212,224,238,245,25102^1 \equiv 2, \quad 2^2 \equiv 4, \quad 2^3 \equiv 8, \quad 2^4 \equiv 5, \quad 2^5 \equiv 10 269,277,283,296,21012^6 \equiv 9, \quad 2^7 \equiv 7, \quad 2^8 \equiv 3, \quad 2^9 \equiv 6, \quad 2^{10} \equiv 1

So ind2(6)=9\text{ind}_2(6) = 9 and ind2(3)=8\text{ind}_2(3) = 8.

Verify: ind2(18)=ind2(7)=79+8=177(mod10)\text{ind}_2(18) = \text{ind}_2(7) = 7 \equiv 9 + 8 = 17 \equiv 7 \pmod{10}. ✓

TheoremSolving Exponential Congruences

Using indices, the congruence axb(modp)a^x \equiv b \pmod{p} (where pp is prime with primitive root gg) transforms to: xindg(a)indg(b)(modp1)x \cdot \text{ind}_g(a) \equiv \text{ind}_g(b) \pmod{p-1}

This linear congruence can be solved using techniques from modular arithmetic.

ExampleExponential Congruence

Solve 3x5(mod7)3^x \equiv 5 \pmod{7} using g=3g = 3 as primitive root modulo 77.

Taking indices: xind3(3)ind3(5)(mod6)x \cdot \text{ind}_3(3) \equiv \text{ind}_3(5) \pmod{6}.

Since ind3(3)=1\text{ind}_3(3) = 1 and ind3(5)=5\text{ind}_3(5) = 5: x5(mod6)x \equiv 5 \pmod{6}

So x=5,11,17,x = 5, 11, 17, \ldots are solutions.

Verify: 35=243=347+55(mod7)3^5 = 243 = 34 \cdot 7 + 5 \equiv 5 \pmod{7}. ✓

TheoremQuadratic Residues via Primitive Roots

Let pp be an odd prime with primitive root gg, and let agk(modp)a \equiv g^k \pmod{p}. Then: (ap)=(1)k\left(\frac{a}{p}\right) = (-1)^k

Thus, aa is a quadratic residue modulo pp if and only if kk is even.

This provides an alternative characterization of quadratic residues using the parity of indices.

ExampleQuadratic Residues via Indices

Modulo 77 with primitive root g=3g = 3:

  • 2322 \equiv 3^2, so (27)=(1)2=1\left(\frac{2}{7}\right) = (-1)^2 = 1 (quadratic residue)
  • 3313 \equiv 3^1, so (37)=(1)1=1\left(\frac{3}{7}\right) = (-1)^1 = -1 (nonresidue)
  • 4344 \equiv 3^4, so (47)=(1)4=1\left(\frac{4}{7}\right) = (-1)^4 = 1 (quadratic residue)

Indeed: 32=92(mod7)3^2 = 9 \equiv 2 \pmod{7} and 22=4(mod7)2^2 = 4 \pmod{7}, confirming they are quadratic residues.

Remark

Primitive roots provide computational advantages: once a table of indices is constructed, multiplication modulo nn reduces to addition, and exponentiation reduces to multiplication. This logarithmic approach was historically important before modern computers and remains useful in certain cryptographic contexts.

These properties demonstrate how primitive roots impose elegant structure on modular arithmetic when they exist.