Alphabeta Math

Primitive Roots and Unit Groups Modulo N

About this page
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 25 results · all verified · 14 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 11 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.
1 · Prerequisites
2 · Logical flowchart

3 · Items

Definition

Primitive roots modulo n

Proposition

A unit is a primitive root modulo n if and only if it generates (ℤ/nℤ)^×

Definition

The index ind_g(a) of a unit relative to a primitive root

Proposition

Index calculus: products become sums and powers become scalar multiples modulo φ(n)

Lemma

In a cyclic group of order m, gᵃ has order m/gcd(a,m)

Corollary

The generators of a cyclic group of order m are the gᵃ with gcd(a,m)=1, so there are φ(m) of them

Lemma

A direct product of two finite cyclic groups is cyclic if and only if their orders are coprime

Corollary

For every prime p, the multiplicative group (ℤ/pℤ)^× is cyclic

Corollary

Every prime modulus admits a primitive root

Corollary

For prime p and d≥1, the congruence xᵈ≡1 (mod p) has gcd(d,p-1) nonzero solutions

Theorem

Euler's criterion: if n has a primitive root, gcd(a,n)=1, and m≥1, then xᵐ≡ a (mod n) is solvable if and only if a^φ(n)/gcd(φ(n),m)≡1 (mod n)

Corollary

If n has a primitive root, gcd(a,n)=1, m≥1, and xᵐ≡ a (mod n) is solvable, then it has exactly gcd(φ(n),m) solution classes modulo n

Lemma

For an odd prime p and a primitive root g modulo p, at least one of g and g+p is primitive modulo p²

Lemma

For odd prime p and s≥1, (1+pˢu)ᵖ≡1+pˢ⁺¹u (mod pˢ⁺²)

Lemma

For odd prime p, p∤ u, and k≥1, the class of 1+pu has order pᵏ⁻¹ modulo pᵏ

Theorem

For every odd prime p and k≥1, (ℤ/pᵏℤ)^× is cyclic of order pᵏ⁻¹(p-1)

Corollary

An odd prime power pᵏ has exactly φ(φ(pᵏ)) primitive roots

Lemma

For k≥3, the class of 5 has order 2ᵏ⁻² modulo 2ᵏ

Theorem

For k≥3, (ℤ/2ᵏℤ)^×≅ C₂× C_2ᵏ⁻², generated uniquely as (-1)^ε5ʲ

Theorem

For pairwise coprime positive moduli, the Chinese remainder bijection restricts to an isomorphism of unit groups

Theorem

The unit group modulo n is the product of its odd-prime cyclic factors and its explicit 2-power factor

Definition

Carmichael's function λ(n) as the exponent of (ℤ/nℤ)^×

Proposition

Carmichael's λ(n) is the maximum order of a unit modulo n

Theorem

Carmichael's function on prime powers and its least-common-multiple formula

Corollary

If gcd(a,n)=1, then a^λ(n)≡1 (mod n)

Lemma

For odd n, primitive-root existence is equivalent for n and 2n

Theorem

A positive integer admits a primitive root exactly when it is 1, 2, 4, pᵏ, or 2pᵏ for an odd prime p

Corollary

A modulus with primitive roots has exactly φ(φ(n)) primitive roots

Sources