Alphabeta Math
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.

Primitive Roots and Unit Groups Modulo N

1 · Prerequisites

2 · Summary

The published unit group (Z/nZ)× collects the residue classes coprime to n, the unit criterion recognises them, and Euler's totient counts them. The order of a group element, its characterisation by which powers are trivial, and the fact that it divides the order of the group constrain every generator argument. The Chinese remainder theorem splits Z/nZ along a prime factorisation, Z/pZ is a field, a finite subgroup of the units of an integral domain is cyclic, and the solvability and solution count of a linear congruence are known. Coprimality, least common multiples and the p-adic valuation supply the remaining arithmetic.

A primitive root modulo n is a generator of the unit group, and the index relative to a chosen generator converts multiplication into addition modulo φ(n). Cyclicity of the unit group of a prime field yields primitive roots modulo a prime, Euler's criterion for the solvability of xm≡a, and the exact number of its solution classes. The page then lifts a primitive root from p to every odd prime power and determines the exceptional structure (Z/2kZ)×≅C2×C2k−2 for k≥3. The Chinese remainder decomposition assembles the prime-power factors into the structure of the unit group modulo any n, and from it the page derives the Carmichael function and its formula, classifies the moduli 1,2,4,pk,2pk admitting primitive roots, and counts them.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Primitive roots modulo n

Definition

Let n≥1. A unit g∈(Z/n)× is a primitive root modulo n when

ord⁡(g)=φ(n),

where the unit group and Euler totient are those of The unit group (Z/n)× and Euler's totient φ(n)=∣(Z/n)×∣ for n≥1 and the order is that of The order ∣G∣ of a finite group and the order ord⁡(g) of an element, with ord⁡(g)=∞ when no positive power of g is the identity. Thus the unique class modulo 1 is a primitive root under this definition, since both its order and φ(1) are 1.

PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

Let n≥1 and g∈(Z/n)×. Then g is a primitive root modulo n if and only if

⟨g⟩=(Z/n)×.

Facts & Assumptions

Given: A positive integer n and a unit g modulo n.

[L1]

A primitive root modulo n is a unit whose order is φ(n) (Primitive roots modulo n).

[L3]

The subgroup ⟨g⟩ is the smallest subgroup containing g (The subgroup ⟨S⟩ generated by a subset, the cyclic subgroup ⟨g⟩, and cyclic groups).

Proof

technique · direct
1.1L2L4

The unit group has φ(n) elements by [L4], while [L2] gives ∣⟨g⟩∣=ord⁡(g).

2.1step 1.1L1L3

If g is primitive, [L1] and step 1.1 give ∣⟨g⟩∣=∣(Z/n)×∣; since [L3] makes ⟨g⟩ a subgroup of the finite unit group, the two sets are equal.

3.1step 1.1L1∎

Conversely, if ⟨g⟩=(Z/n)×, step 1.1 gives ord⁡(g)=φ(n), so g is primitive by [L1].

DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-08-16Open item page →

The index ind⁡g(a) of a unit relative to a primitive root

Definition

Let n≥1 and let g be a primitive root modulo n. For every a∈(Z/n)×, the index of a relative to g is the unique residue class

ind⁡g(a)∈Z/φ(n)

such that gr=a whenever the class is represented by r∈Z.

Existence follows from A unit is a primitive root modulo n if and only if it generates (Z/nZ)×, since every unit is a power of g. If gr=gs, then gr−s=1, and If ord⁡(g)=n then gk=e iff k is an integer multiple of n, the powers g0,…,gn−1 are distinct, and ⟨g⟩ has exactly n elements; if g has infinite order then gj=gk only for j=k with ord⁡(g)=φ(n) gives r≡s(modφ(n)); hence the residue class is well-defined and unique.

PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

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

Statement

Let g be a primitive root modulo n. For units a,b modulo n and k∈Z,

ind⁡g(ab)=ind⁡g(a)+ind⁡g(b),ind⁡g(ak)=kind⁡g(a)

in Z/φ(n).

Facts & Assumptions

Given: A primitive root g modulo n, units a,b, and an integer k.

[L1]

The index of a unit is its unique exponent class modulo φ(n) relative to g (The index ind⁡g(a) of a unit relative to a primitive root).

Proof

technique · direct
1.1L1

Choose integers r,s representing ind⁡g(a) and ind⁡g(b), so a=gr and b=gs.

2.1step 1.1L2

By [L2], ab=gr+s and ak=grk.

3.1step 2.1L1L3∎

Applying the uniqueness in [L1], equivalently [L3], to step 2.1 gives the two asserted congruences modulo φ(n).

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

In a cyclic group of order m, ga has order m/gcd⁡(a,m)

Statement

Let G=⟨g⟩ be cyclic of finite order m≥1. For every integer a,

ord⁡(ga)=mgcd⁡(a,m).

Facts & Assumptions

Proof

technique · direct
1.1L4L5algebra

Since m≥1, the common divisor d is nonzero. Write a=da′ and m=dm′; [L5] gives gcd⁡(a′,m′)=1.

2.1L2L3step 1.1algebra

By [L2] and [L3], (ga)t=1 is equivalent to m∣at, hence to m′∣a′t.

3.1step 2.1L6

By [L6] and gcd⁡(a′,m′)=1, the condition in step 2.1 is equivalent to m′∣t.

4.1step 3.1L1∎

Thus the least positive t with (ga)t=1 is m′=m/d, which is the asserted order by [L1].

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

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

Statement

Let G=⟨g⟩ be cyclic of order m. The generators of G are exactly the elements ga with gcd⁡(a,m)=1, for a taken modulo m. Consequently G has φ(m) generators.

Facts & Assumptions

Given: A cyclic group G=⟨g⟩ of finite order m.

[L1]

ord⁡(ga)=m/gcd⁡(a,m) (In a cyclic group of order m, ga has order m/gcd⁡(a,m)).

[L2]

For x of finite order r, the powers x0,…,xr−1 are pairwise distinct and ⟨x⟩={xs:s<r}, so ⟨x⟩ is finite with ∣⟨x⟩∣=ord⁡(x) (If ord⁡(g)=n then gk=e iff k is an integer multiple of n, the powers g0,…,gn−1 are distinct, and ⟨g⟩ has exactly n elements; if g has infinite order then gj=gk only for j=k).

[L3]

The unit classes modulo m are exactly the classes represented by integers coprime to m (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

Proof

technique · direct
1.1L1L2algebra

By [L2], ∣⟨ga⟩∣=ord⁡(ga) and ∣G∣=∣⟨g⟩∣=ord⁡(g)=m. Since ⟨ga⟩⊆G and G is finite, ga generates G exactly when ∣⟨ga⟩∣=m, that is exactly when ord⁡(ga)=m. By [L1] this says m/gcd⁡(a,m)=m, equivalently gcd⁡(a,m)=1.

1.2L2

By [L2] the powers g0,…,gm−1 are pairwise distinct, so distinct exponent classes modulo m give distinct powers of g.

2.1step 1.1step 1.2L3L4∎

By [L3] and [L4], exactly φ(m) exponent classes satisfy the condition in step 1.1, proving the count.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

If Cm and Cn are finite cyclic groups of orders m,n≥1, then Cm×Cn is cyclic if and only if gcd⁡(m,n)=1.

Facts & Assumptions

Proof

technique · direct
1.1L1L2L3

For (x,y)∈Cm×Cn with coordinate orders r and s, [L1] and [L2] show that (x,y)t=(1,1) exactly when both r∣t and s∣t; its order is therefore lcm⁡(r,s) by [L3].

2.1step 1.1L4algebra

If gcd⁡(m,n)=1, [L4] and step 1.1 give ord⁡(g,h)=lcm⁡(m,n)=mn, so (g,h) generates the product of order mn.

3.1step 1.1L2L3L4algebra∎

Conversely, if the product is cyclic, a generator (x,y) has order mn. Its coordinate orders divide m and n, so step 1.1 gives mn=lcm⁡(r,s)≤lcm⁡(m,n)≤mn; hence lcm⁡(m,n)=mn, and [L4] gives gcd⁡(m,n)=1.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

For every prime p, the multiplicative group (Z/pZ)× is cyclic

Statement

For every prime p, the group (Z/p)× is cyclic of order p−1.

Facts & Assumptions

Proof

technique · direct
1.1L1L2

By [L1] and [L2], Z/p is an integral domain.

2.1step 1.1L3L4L5∎

By [L4], its entire unit group is a finite subgroup of its units, so [L3] makes it cyclic; [L4] and [L5] give its order. This includes p=2, when the group is trivial.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Every prime modulus admits a primitive root

Statement

Every prime p admits a primitive root modulo p.

Facts & Assumptions

Given: A prime p.

[L1]

The unit group (Z/p)× is a finite cyclic group (For every prime p, the multiplicative group (Z/pZ)× is cyclic).

[L2]

A unit is a primitive root exactly when it generates the unit group (A unit is a primitive root modulo n if and only if it generates (Z/nZ)×).

Proof

technique · direct
1.1L1choose

Choose a generator g of the cyclic group in [L1]; such a generator exists also when p=2, since the one-element group is cyclic.

2.1step 1.1L2∎

By [L2], the chosen g is a primitive root modulo p.

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

For prime p and d≥1, the congruence xd≡1(modp) has gcd⁡(d,p−1) nonzero solutions

Statement

Let p be prime and d≥1. The congruence xd≡1(modp) has exactly gcd⁡(d,p−1) nonzero residue-class solutions. In particular, it has exactly d solutions when d∣(p−1).

Facts & Assumptions

Given: A prime p and a positive integer d.

[L1]

(Z/p)× is cyclic of order p−1 (For every prime p, the multiplicative group (Z/pZ)× is cyclic).

[L3]

The greatest common divisor c=gcd⁡(d,p−1) divides both d and p−1 (Common divisor, and the greatest common divisor gcd⁡(a,b), with the convention gcd⁡(0,0):=0).

[L4]

Dividing two integers by their nonzero greatest common divisor gives coprime quotients (If d=gcd⁡(a,b) is nonzero then a/d and b/d are coprime).

[L5]

If two integers are coprime and one divides a product containing the other, it divides the remaining factor (If gcd⁡(a,b)=1 and a∣bc then a∣c; and if a∣c, b∣c and gcd⁡(a,b)=1 then ab∣c).

Proof

technique · direct
1.1L1L2choose

Choose a generator g from [L1]. Every nonzero class is uniquely ga with a modulo p−1.

1.2L3L4algebra

Put c=gcd⁡(d,p−1). Since p−1≥1, c is nonzero; write d=cd′, p−1=cm′, and use [L4] to obtain gcd⁡(d′,m′)=1.

2.1step 1.1step 1.2L2L5

By [L2], (ga)d=1 exactly when (p−1)∣ad, which by step 1.2 and [L5] is equivalent to m′∣a.

3.1step 2.1algebra∎

Modulo p−1=cm′, precisely the c classes 0,m′,…,(c−1)m′ satisfy step 2.1, proving the count. If d∣(p−1) then c=d.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

Euler's criterion: if n has a primitive root, gcd⁡(a,n)=1, and m≥1, then xm≡a(modn) is solvable if and only if aφ(n)/gcd⁡(φ(n),m)≡1(modn)

Statement

Let n≥1 admit a primitive root, let gcd⁡(a,n)=1, and let m≥1. Put d=gcd⁡(m,φ(n)). Then

xm≡a(modn)

is solvable if and only if

aφ(n)/d≡1(modn).

Facts & Assumptions

Given: Integers n≥1, a, and m≥1 satisfying the stated hypotheses, and d=gcd⁡(m,φ(n)).

[L1]

A primitive root has order φ(n) (Primitive roots modulo n).

[L2]

Relative to a primitive root g, every unit has a unique index modulo φ(n) (The index ind⁡g(a) of a unit relative to a primitive root).

[L3]

Index calculus turns a power into scalar multiplication of its index (Index calculus: products become sums and powers become scalar multiples modulo φ(n)).

[L6]

A class modulo n is a unit exactly when its representative is coprime to n (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

Proof

technique · direct
1.1L1L2L6choosealgebra

Choose a primitive root g, put f=φ(n), and let k=ind⁡g(a). By [L6], a is a unit. If xm=a, then x(xm−1a−1)=1, so every solution x is also a unit.

1.2L1L3L5algebra

Again by [L1] and [L3], af/d=1 exactly when f∣kf/d. Since d∣f by [L5], this is equivalent to d∣k.

2.1step 1.1L2L3L4

By [L2] and [L3], writing a candidate unit as x=gy turns xm=a in the unit group into my≡k(modf). By [L4], this is solvable exactly when d∣k.

3.1step 2.1step 1.2∎

Steps 2.1 and 1.2 give the claimed biconditional. The argument also covers n=1 and m=1, where f=d=1.

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

Let n≥1 admit a primitive root, let gcd⁡(a,n)=1, and let m≥1. If xm≡a(modn) is solvable, then it has exactly

gcd⁡(φ(n),m)

solution classes modulo n.

Facts & Assumptions

Given: The stated hypotheses and the solvability of xm≡a(modn).

[L1]

Relative to a primitive root g, every unit has a unique index modulo φ(n) (The index ind⁡g(a) of a unit relative to a primitive root).

[L2]

The index of xm is congruent to mind⁡g(x) modulo φ(n) (Index calculus: products become sums and powers become scalar multiples modulo φ(n)).

[L3]

For u,v∈Z and f≥1, the congruence uy≡v(modf) is solvable exactly when gcd⁡(u,f)∣v, and when solvable it has exactly gcd⁡(u,f) solution classes in Z/f (For n≥1, ax≡b(modn) is solvable exactly when gcd⁡(a,n)∣b, and then has exactly gcd⁡(a,n) solution classes modulo n).

[L4]

A class modulo n is a unit exactly when its representative is coprime to n (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

Proof

technique · direct
1.1L1choose

Choose a primitive root g, put f=φ(n), and let r=ind⁡g(a).

1.2L4givenalgebra

By [L4], a is a unit. If xm=a, then x(xm−1a−1)=1, so every solution x is a unit.

2.1step 1.1step 1.2L1L2

By [L1], exponent classes y modulo f parametrise unit classes bijectively as x=gy, and by [L2] the solutions correspond exactly to the classes satisfying my≡r(modf).

3.1step 2.1L3∎

Here f=φ(n)≥1, so [L3] applies; the latter congruence is solvable by the Given, so [L3] gives exactly gcd⁡(m,f)=gcd⁡(φ(n),m) classes; the bijection in step 2.1 preserves this count, including when n=1 or m=1.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

Let p be an odd prime and let the integer g represent a primitive root modulo p. Then at least one of g and g+p represents a primitive root modulo p2.

Facts & Assumptions

Given: An odd prime p and a primitive root g modulo p.

[L1]

A class is a primitive root when its order equals the totient of the modulus (Primitive roots modulo n), and it is a unit exactly when its representative is coprime to the modulus (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

[L2]

The order of an element of a finite group divides the group order (The order of every element of a finite group divides the order of the group), and φ(p2)=p(p−1) (For a prime p and k≥1, φ(pk)=pk−pk−1).

[L5]
[L6]

Mathematical induction holds on N (The principle of mathematical induction).

Proof

technique · cases
1.1givenL1L2L3algebra

Both g and g+p are units modulo p2 by [L1] and reduce to the same primitive root modulo p. If either has order r modulo p2, reduction modulo p makes its rth power 1, so p−1∣r by [L1] and [L3]. By [L2], r also divides p(p−1), and hence r is either p−1 or p(p−1).

1.2L4L5L6

For every r≥1, induction using the product law gives (g+p)r≡gr+rpgr−1(modp2).

2.1assume-case firststep 1.1

Assume first that gp−1≢1(modp2). Then step 1.1 excludes order p−1, so g has order p(p−1) and is primitive modulo p2.

2.2assume-case secondstep 1.1step 1.2L1L5

Assume instead that gp−1≡1(modp2). Step 1.2 gives (g+p)p−1≡1+p(p−1)gp−2(modp2); the second term is not divisible by p2, since neither p−1 nor g is divisible by p. Thus (g+p)p−1≢1(modp2), and step 1.1 makes g+p primitive.

3.1step 2.1step 2.2cases-exhaustive∎

The two cases are exhaustive, and in each one of the two representatives is primitive modulo p2.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

For odd prime p and s≥1, (1+psu)p≡1+ps+1u(modps+2)

Statement

If p is an odd prime, s≥1, and u∈Z, then

(1+psu)p≡1+ps+1u(modps+2).

Facts & Assumptions

Given: An odd prime p, an integer s≥1, and u∈Z.

[L1]

Binomial coefficients count subsets and have their usual boundary values (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L5]

Mathematical induction holds on N (The principle of mathematical induction).

Proof

technique · direct
1.1L1L2L5

Induction on the exponent using [L2] gives the binomial expansion (1+z)p=∑r=0p(pr)zr in Z.

1.2L2L3algebra

For 1≤r<p, the identity r(pr)=p(p−1r−1) follows from [L2]. Since p∤r, [L3] implies p∣(pr).

2.1step 1.1step 1.2algebra

Substitute z=psu in step 1.1. For 2≤r<p, step 1.2 makes the rth term divisible by p1+sr, hence by ps+2; the final term is divisible by psp, and sp≥s+2 because p≥3 and s≥1.

3.1step 2.1L4∎

Modulo ps+2 only the constant and linear terms remain, namely 1+p⋅psu=1+ps+1u, which is the asserted congruence by [L4].

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

For odd prime p, p∤u, and k≥1, the class of 1+pu has order pk−1 modulo pk

Statement

Let p be an odd prime and u∈Z with p∤u. For every k≥1, the class of 1+pu in (Z/pk)× has order pk−1.

Facts & Assumptions

Given: An odd prime p, an integer u not divisible by p, and k≥1.

[L1]

The units modulo a positive modulus form a finite group (The unit group (Z/n)× and Euler's totient φ(n)=∣(Z/n)×∣ for n≥1), and a class is a unit exactly when its representative is coprime to the modulus (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

[L2]

If p∤v and s≥1, then (1+psv)p≡1+ps+1v(modps+2) (For odd prime p and s≥1, (1+psu)p≡1+ps+1u(modps+2)).

[L5]

Mathematical induction holds on N (The principle of mathematical induction).

Proof

technique · induction
1.1basegivenL4

For j=0, (1+pu)p0−1=pu has valuation 1.

1.2ihL2L3L4

Assume (1+pu)pj=1+pj+1v with p∤v. Applying [L2] with s=j+1 and using [L3] gives (1+pu)pj+1=1+pj+2v′ with p∤v′.

1.3givenL1algebra

Any common prime divisor of 1+pu and pk would be p, but 1+pu≡1(modp). Thus 1+pu is coprime to pk, so [L1] places its class in (Z/pk)×.

2.1step 1.1step 1.2L5

By induction, vp((1+pu)pj−1)=j+1 for every j≥0.

3.1step 1.3step 2.1L4L6discharge-induction∎

By step 1.3 the order is defined in the finite unit group. Step 2.1 at j=k−1 and [L6] show that it divides pk−1. If it were a proper divisor of this prime power, it would divide pk−2 when k≥2, so [L6] would make the pk−2nd power equal to 1, contradicting step 2.1 at j=k−2; for k=1 the class is already the identity and has order 1.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

For every odd prime p and k≥1, (Z/pkZ)× is cyclic of order pk−1(p−1)

Statement

For every odd prime p and integer k≥1, the group (Z/pk)× is cyclic of order

φ(pk)=pk−1(p−1).

Facts & Assumptions

Given: An odd prime p and an integer k≥1.

[L1]

Every prime modulus admits a primitive root (Every prime modulus admits a primitive root), and from a primitive root modulo an odd prime p, at least one of g and g+p is primitive modulo p2 (For an odd prime p and a primitive root g modulo p, at least one of g and g+p is primitive modulo p2).

[L2]

If p∤u, the class 1+pu has order pk−1 modulo pk (For odd prime p, p∤u, and k≥1, the class of 1+pu has order pk−1 modulo pk).

[L3]
[L5]

The order of an element of a finite group divides the group order (The order of every element of a finite group divides the order of the group).

Proof

technique · direct
1.1L1L4choosealgebra

Choose a primitive root modulo p by [L1], and replace its integer representative by the lift supplied there so that it is primitive modulo p2. Reduction modulo p gives gp−1=1+pu for some integer u, while primitivity modulo p2 and [L4] show p∤u.

2.1step 1.1L2L4

Reduction modulo p shows that the order of g modulo pk is divisible by p−1, while [L2] applied to step 1.1 shows that the order of gp−1 is pk−1.

3.1step 2.1L3L5L6algebra

The cyclic subgroup generated by gp−1 lies in that generated by g, so [L5] and step 2.1 make pk−1 divide the order of g. That order is also divisible by p−1 by step 2.1. These two divisors are coprime, so [L6] makes their product divide the order; conversely [L3] and [L5] make the order divide pk−1(p−1). Therefore it equals that group order.

4.1step 3.1L3∎

Thus g generates the entire unit group, proving cyclicity; when k=1 the same argument reduces to the original primitive root modulo p.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

An odd prime power pk has exactly φ(φ(pk)) primitive roots

Statement

If p is an odd prime and k≥1, then there are exactly φ(φ(pk)) primitive roots modulo pk.

Facts & Assumptions

Given: An odd prime p and k≥1.

[L2]

Primitive roots are exactly generators of the unit group (A unit is a primitive root modulo n if and only if it generates (Z/nZ)×).

Proof

technique · direct
1.1L1L2

By [L1] and [L2], the primitive roots modulo pk are the generators of a cyclic group of order φ(pk).

2.1step 1.1L3∎

Applying [L3] to step 1.1 gives φ(φ(pk)) primitive roots.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

For k≥3, the class of 5 has order 2k−2 modulo 2k

Statement

For every integer k≥3, the residue class of 5 has order 2k−2 in (Z/2k)×.

Facts & Assumptions

Given: An integer k≥3.

[L4]

Mathematical induction holds on N (The principle of mathematical induction).

[L5]

A residue class is a unit exactly when its representative is coprime to the modulus (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

Proof

technique · induction
1.1baseL3L5algebra

The odd integer 5 is coprime to 2k, so [L5] puts its class in the unit group. At j=0, 520−1=4, so its 2-adic valuation is 2.

1.2ihL2L3

Assume v2(52j−1)=j+2. Since 52j≡1(mod4), the factor 52j+1 is congruent to 2 modulo 4 and has valuation 1. The factorisation 52j+1−1=(52j−1)(52j+1) and [L3] therefore give valuation j+3.

2.1step 1.1step 1.2L4

By induction, v2(52j−1)=j+2 for all j≥0.

3.1step 2.1L3

Step 2.1 with j=k−2 gives 52k−2≡1(mod2k), while the case j=k−3 gives 52k−3≢1(mod2k).

4.1step 1.1step 3.1L1discharge-induction∎

By [L1], the order divides 2k−2; every proper divisor of this prime power divides 2k−3, which step 3.1 excludes. Hence the order is 2k−2.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

For k≥3, (Z/2kZ)×≅C2×C2k−2, generated uniquely as (−1)ε5j

Statement

For every k≥3,

(Z/2k)×≅C2×C2k−2.

More precisely, every unit has a unique representation (−1)ε5j with ε∈{0,1} and j modulo 2k−2.

Facts & Assumptions

Given: An integer k≥3.

[L1]

The class of 5 has order 2k−2 modulo 2k (For k≥3, the class of 5 has order 2k−2 modulo 2k).

[L3]

A direct product of finite groups has the product of their orders (For finite groups G and H, ∣G×H∣=∣G∣ ∣H∣).

[L4]

The units modulo 2k are the classes represented by odd integers (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

[L5]

Multiplication modulo 2k is commutative and restricts to the unit group (The unit group (Z/n)× and Euler's totient φ(n)=∣(Z/n)×∣ for n≥1).

[L6]

A bijective group homomorphism is a group isomorphism (Group isomorphisms, automorphisms and the set Aut⁡(G)).

Proof

technique · direct
1.1L1algebra

The class of −1 has order 2, and [L1] gives order 2k−2 for 5.

1.2algebra

Every power of 5 is 1 modulo 4, whereas −1 is 3 modulo 4; hence ⟨−1⟩∩⟨5⟩={1}.

2.1step 1.1step 1.2L4L5

The map C2×C2k−2→(Z/2k)× given by (ε,j)↦(−1)ε5j is a homomorphism by [L5], and step 1.2 makes it injective.

3.1step 2.1L2L3

Its domain has 2k−1 elements by [L3], equal to the size of the target by [L2]; thus it is bijective.

4.1step 3.1L6∎

By [L6] the map is an isomorphism, and its bijectivity is exactly the asserted unique representation.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

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

Statement

Let n0,…,nr−1 be pairwise coprime positive integers and N=∏i<rni. The Chinese remainder map restricts to a group isomorphism

(Z/N)×≅∏i<r(Z/ni)×.

For the empty list this identifies the two one-element groups.

Facts & Assumptions

Given: The stated finite pairwise-coprime list and its product N.

[L1]

The Chinese remainder map Z/N→∏i<rZ/ni is a bijection preserving multiplication and identity, including for the empty list (Chinese remainder theorem for a finite pairwise-coprime list: simultaneous residues determine one class modulo the product, and the resulting bijection preserves addition and multiplication).

[L2]

For n≥1, the invertible classes of Z/n form a group (Z/n)× under multiplication (The unit group (Z/n)× and Euler's totient φ(n)=∣(Z/n)×∣ for n≥1).

[L3]

A bijective group homomorphism is an isomorphism (Group isomorphisms, automorphisms and the set Aut⁡(G)).

Proof

technique · direct
1.1L1L2

By [L1], the CRT map preserves multiplication and identity. If a class has an inverse, its image has the coordinatewise image of that inverse.

1.2L1L2choose

Conversely, if every coordinate is a unit, take the tuple of coordinatewise inverses and use surjectivity in [L1] to lift it; multiplicativity shows that the lift is an inverse of the original class.

2.1step 1.1step 1.2L1L2

Steps 1.1 and 1.2 show that [L1] restricts to a bijective homomorphism between the displayed unit groups.

3.1step 2.1L1L3∎

It is therefore an isomorphism by [L3], and [L1] supplies the empty-list case.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

Let n≥1 have prime-power factorisation n=2a∏i<rpiki, where the pi are distinct odd primes and ki≥1. Then

(Z/n)×≅U2,a×∏i<rCpiki−1(pi−1),

where U2,0 and U2,1 are trivial, U2,2=C2, and

U2,a=C2×C2a−2(a≥3).

For n=1 the product is empty and hence trivial.

Facts & Assumptions

Given: A positive integer n and its displayed prime-power factorisation.

[L1]

CRT gives an isomorphism from a unit group to the product of the unit groups of pairwise coprime factors (For pairwise coprime positive moduli, the Chinese remainder bijection restricts to an isomorphism of unit groups).

[L2]

For odd p, (Z/pk)× is cyclic of order pk−1(p−1) (For every odd prime p and k≥1, (Z/pkZ)× is cyclic of order pk−1(p−1)).

[L4]

Given an injective list of primes containing every prime divisor of n≥1, one has n=∏ipivpi(n), the exponents being determined by n (For n≥1 and any injective list p:r→Z of primes containing every prime divisor of n, one has n=∏i<rpi vpi(n); the exponents are determined by n, and vq(n)=0 for every prime q outside the list). The Given of this theorem supplies exactly such a list, namely the primes of the displayed factorisation.

[L5]

φ(2)=1 and φ(4)=2 by the prime-power formula (For a prime p and k≥1, φ(pk)=pk−pk−1).

[L7]

The totient is the cardinality of the unit group: φ(n)=∣(Z/n)×∣ (The unit group (Z/n)× and Euler's totient φ(n)=∣(Z/n)×∣ for n≥1).

Proof

technique · direct
1.1L4L1

By [L4], the displayed factors are pairwise coprime, so [L1] decomposes the unit group into its 2-power factor and the odd-prime-power factors.

2.1step 1.1L2L3

Substitute [L2] for every odd factor and [L3] for the 2-power factor when a≥3.

2.2step 1.1L5L6L7

If a=0 there is no 2-factor. If a=1, then [L5] gives φ(2)=1 and [L7] reads that as ∣(Z/2)×∣=1, so the unit group is trivial. If a=2, then [L5] and [L7] give ∣(Z/4)×∣=2, prime order, so [L6] makes it cyclic.

3.1step 2.1step 2.2L1∎

Steps 2.1 and 2.2 give the asserted decomposition. When n=1, [L1] identifies the empty product with the one-element unit group.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Carmichael's function λ(n) as the exponent of (Z/nZ)×

Definition

For n≥1, Carmichael's function is the exponent of the finite unit group:

λ(n):=exp⁡((Z/n)×).

The unit group is finite by The unit group (Z/n)× and Euler's totient φ(n)=∣(Z/n)×∣ for n≥1, and its exponent exists by The exponent of a finite group. In particular λ(1)=1, since the unit group modulo 1 is trivial.

PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

For every n≥1 there is a unit modulo n of order λ(n), and every unit has order dividing λ(n). Thus λ(n) is the maximum element order in (Z/n)×.

Facts & Assumptions

Given: A positive integer n.

[L1]

λ(n) is the exponent of the unit group (Carmichael's function λ(n) as the exponent of (Z/nZ)×).

[L2]

The unit group is a finite direct product of cyclic groups with the explicit 2-power factors described in The unit group modulo n is the product of its odd-prime cyclic factors and its explicit 2-power factor.

[L4]

For a,b∈Z both nonzero, lcm⁡(a,b) is the least positive common multiple of a and b; if a=0 or b=0 then the only common multiple is 0 and lcm⁡(a,b)=0. It is defined for two arguments only (Common multiple, and the least common multiple lcm⁡(a,b), taken to be 0 when a=0 or b=0).

[L6]

If g and h have finite orders m,n≥1, then ord⁡(g,h)=lcm⁡(m,n) in the external direct product (If g and h have finite orders m and n, then ι(ord⁡(g,h))=lcm⁡(ι(m),ι(n)) in G×H).

Proof

technique · direct
1.1L2choose

In the decomposition [L2], choose a generator in every cyclic factor, including generators of both cyclic factors in the exceptional 2-power component.

1.2L1L2L3L4L5algebra

Let r0,…,rk−1 be the orders of the chosen generators and define the iterated least common multiple from the binary operation of [L4] by ℓ0=1 and ℓs+1=lcm⁡(ℓs,rs); [L4] supplies only the binary operation, so this recursion is what gives the list value. Induction on s shows a positive m satisfies ℓs∣m exactly when ri∣m for every i<s: at s=0 both sides always hold, and ℓs+1∣m holds exactly when ℓs∣m and rs∣m, by [L5] one way and because both divide ℓs+1 the other. By [L3] a power kills the product exactly when it is divisible by every ri, so the exponent of the product is ℓk.

2.1step 1.1step 1.2L3L4L6

The tuple of chosen generators has order ℓk: iterating [L6] over the k factors gives ord⁡ of the tuple as the same iterated least common multiple, with the empty product contributing the identity of order ℓ0=1.

3.1step 2.1step 1.2L1L2∎

Steps 2.1 and 1.2 produce a unit of order λ(n), while [L1] makes every element order divide λ(n). The empty product at n=1 gives the identity of order 1.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

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

Statement

Carmichael's function satisfies λ(1)=1, and for prime powers,

λ(pk)=pk−1(p−1)(p odd, k≥1),

λ(2)=1,λ(4)=2,λ(2k)=2k−2(k≥3).

If n=∏i<rqiei is its prime-power factorisation, then

λ(n)=lcm⁡i<rλ(qiei).

Here lcm⁡ of a finite list is the iterated binary least common multiple of Common multiple, and the least common multiple lcm⁡(a,b), taken to be 0 when a=0 or b=0, which defines that operation for two arguments only: set lcm⁡i<0ai:=1 and lcm⁡i<s+1ai:=lcm⁡(lcm⁡i<sai,  as). In particular the empty least common multiple is 1, which is the value taken at n=1.

Facts & Assumptions

Given: A positive integer n and its prime-power factorisation.

[L1]

λ(n) is the exponent of the unit group (Carmichael's function λ(n) as the exponent of (Z/nZ)×).

[L2]

The structure theorem gives every prime-power factor of the unit group explicitly (The unit group modulo n is the product of its odd-prime cyclic factors and its explicit 2-power factor).

[L4]

For a,b∈Z both nonzero, lcm⁡(a,b) is the least positive common multiple of a and b; if a=0 or b=0 then the only common multiple is 0 and lcm⁡(a,b)=0. It is defined for two arguments only (Common multiple, and the least common multiple lcm⁡(a,b), taken to be 0 when a=0 or b=0).

Proof

technique · direct
1.1L1L2L3

Reading the exponents of the cyclic factors in [L2] gives the displayed odd-prime and 2-power formulas, as well as λ(1)=1.

1.2L1L3L4L5algebra

Let a0,…,ar−1 be the factor exponents and ℓs=lcm⁡i<sai as defined in the Statement from the binary operation of [L4]. Induction on s shows that a positive integer m satisfies ℓs∣m exactly when ai∣m for every i<s: at s=0 both sides hold always, since ℓ0=1 and the condition is vacuous; and ℓs+1=lcm⁡(ℓs,as) divides m exactly when ℓs∣m and as∣m, by [L5] for one direction and because ℓs and as both divide ℓs+1 for the other. In a finite direct product a power kills every tuple exactly when it is divisible by the exponent of each factor, by [L1] and [L3]; so the least such positive power is ℓr.

2.1step 1.2L2∎

Apply step 1.2 to the CRT decomposition in [L2] to obtain the formula for general n, including the empty product at n=1.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

If gcd⁡(a,n)=1, then aλ(n)≡1(modn)

Statement

If n≥1 and gcd⁡(a,n)=1, then

aλ(n)≡1(modn).

Facts & Assumptions

Given: Integers n≥1 and a with gcd⁡(a,n)=1.

[L1]

λ(n) is the exponent of (Z/n)× (Carmichael's function λ(n) as the exponent of (Z/nZ)×).

[L2]

The class of a is a unit exactly when gcd⁡(a,n)=1 (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

[L3]

Every element of a finite group raised to its exponent is the identity (The exponent of a finite group).

Proof

technique · direct
1.1L2

By [L2], the class of a lies in the unit group modulo n.

2.1step 1.1L1L3∎

By [L1] and [L3], its λ(n)th power is the identity class, which is the asserted congruence. For n=1, both sides are the unique class and λ(1)=1.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

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

Statement

If n≥1 is odd, then n admits a primitive root if and only if 2n admits a primitive root.

Facts & Assumptions

Given: An odd positive integer n.

[L1]

CRT restricts to an isomorphism of unit groups for coprime positive moduli (For pairwise coprime positive moduli, the Chinese remainder bijection restricts to an isomorphism of unit groups).

[L2]

A modulus admits a primitive root exactly when its unit group is cyclic (A unit is a primitive root modulo n if and only if it generates (Z/nZ)×).

[L3]

For a prime p, φ(p)=p−1; in particular φ(2)=1 (φ(1)=1, and φ(p)=p−1 for every prime p).

[L4]

The totient is the cardinality of the unit group: φ(n)=∣(Z/n)×∣ (The unit group (Z/n)× and Euler's totient φ(n)=∣(Z/n)×∣ for n≥1).

Proof

technique · direct
1.1L1

Since n is odd, [L1] gives (Z/2n)×≅(Z/2)××(Z/n)×.

1.2L3L4algebra

By [L3], φ(2)=1, and by [L4] that number is ∣(Z/2)×∣, so the first factor is trivial and the right-hand side is isomorphic to (Z/n)×.

2.1step 1.1step 1.2L2∎

Therefore the two unit groups are cyclic simultaneously, and [L2] converts this into the asserted equivalence of primitive-root existence.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

A positive integer n admits a primitive root if and only if

n∈{1,2,4,pk,2pk},

where p is an odd prime and k≥1.

Facts & Assumptions

Given: A positive integer n.

[L1]

A primitive root exists exactly when the unit group is cyclic (A unit is a primitive root modulo n if and only if it generates (Z/nZ)×).

[L3]

A product of finite cyclic groups is cyclic exactly when the factor orders are pairwise coprime, by repeated use of A direct product of two finite cyclic groups is cyclic if and only if their orders are coprime.

[L4]

Primitive-root existence is equivalent for odd n and 2n (For odd n, primitive-root existence is equivalent for n and 2n).

Proof

technique · direct
1.1L2L4

The unit groups for 1 and 2 are trivial, that for 4 is C2, and [L2] makes the unit group for every odd prime power cyclic. By [L4], every twice-odd-prime-power also has a cyclic unit group.

1.2L2L3

Conversely, write n=2a∏piki. If a≥3, [L2] contains cyclic factors of orders 2 and 2a−2, which are not coprime, so [L3] makes the unit group noncyclic. If a=2 and an odd factor is present, the factor C2 and the even-order odd-prime factor are likewise not coprime.

1.3L2L3

If two distinct odd-prime factors are present, both cyclic factor orders are even, so [L3] again makes the product noncyclic. Thus cyclicity leaves only 1,2,4,pk, and 2pk.

2.1step 1.1L1

By [L1], all moduli in the displayed list admit primitive roots.

3.1step 2.1step 1.2step 1.3L1∎

Combining steps 2.1 and 1.3 with [L1] proves both directions, including the convention at n=1.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

If n≥1 admits a primitive root, then it has exactly φ(φ(n)) primitive roots.

Facts & Assumptions

Given: A positive modulus n admitting a primitive root.

[L1]

Primitive roots are exactly generators of the unit group (A unit is a primitive root modulo n if and only if it generates (Z/nZ)×).

Proof

technique · direct
1.1givenL1

By the Given and [L1], the unit group is cyclic of order φ(n), and its generators are exactly the primitive roots.

2.1step 1.1L2∎

Applying [L2] with m=φ(n) yields φ(φ(n)) primitive roots. At n=1 this is φ(1)=1, counting the unique class.

5 · Examples, counterexamples and false statements

None yet.

Sources