Alphabeta Math
Session-authored (Fable 5 assisted)
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 xma, 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×C2k2 for k3. 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 n1. 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 n1 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 n1 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.1

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

L2L4
2.1

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.

step 1.1L1L3
3.1

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

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

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

Definition

Let n1 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

indg(a)Z/φ(n)

such that gr=a whenever the class is represented by rZ.

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 grs=1, and If ord(g)=n then gk=e iff k is an integer multiple of n, the powers g0,,gn1 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 rs(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 kZ,

indg(ab)=indg(a)+indg(b),indg(ak)=kindg(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 indg(a) of a unit relative to a primitive root).

Proof

technique · direct
1.1

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

L1
2.1

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

step 1.1L2
3.1

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

step 2.1L1L3
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 m1. For every integer a,

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

Facts & Assumptions

Proof

technique · direct
1.1

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

L4L5algebra
2.1

By [L2] and [L3], (ga)t=1 is equivalent to mat, hence to mat.

L2L3step 1.1algebra
3.1

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

step 2.1L6
4.1

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

step 3.1L1
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,,xr1 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,,gn1 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 n1, [a]n is a unit if and only if gcd(a,n)=1).

Proof

technique · direct
1.1

By [L2], ga=ord(ga) and G=g=ord(g)=m. Since gaG 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.

L1L2algebra
1.2

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

L2
2.1

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

step 1.1step 1.2L3L4
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,n1, then Cm×Cn is cyclic if and only if gcd(m,n)=1.

Facts & Assumptions

Proof

technique · direct
1.1

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

L1L2L3
2.1

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.

step 1.1L4algebra
3.1

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.

step 1.1L2L3L4algebra
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 p1.

Facts & Assumptions

Proof

technique · direct
1.1

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

L1L2
2.1

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.

step 1.1L3L4L5
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.1

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.

L1choose
2.1

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

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

For prime p and d1, the congruence xd1(modp) has gcd(d,p1) nonzero solutions

Statement

Let p be prime and d1. The congruence xd1(modp) has exactly gcd(d,p1) nonzero residue-class solutions. In particular, it has exactly d solutions when d(p1).

Facts & Assumptions

Given: A prime p and a positive integer d.

[L1]

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

[L3]

The greatest common divisor c=gcd(d,p1) divides both d and p1 (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 abc then ac; and if ac, bc and gcd(a,b)=1 then abc).

Proof

technique · direct
1.1

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

L1L2choose
1.2

Put c=gcd(d,p1). Since p11, c is nonzero; write d=cd, p1=cm, and use [L4] to obtain gcd(d,m)=1.

L3L4algebra
2.1

By [L2], (ga)d=1 exactly when (p1)ad, which by step 1.2 and [L5] is equivalent to ma.

step 1.1step 1.2L2L5
3.1

Modulo p1=cm, precisely the c classes 0,m,,(c1)m satisfy step 2.1, proving the count. If d(p1) then c=d.

step 2.1algebra
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 m1, then xma(modn) is solvable if and only if aφ(n)/gcd(φ(n),m)1(modn)

Statement

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

xma(modn)

is solvable if and only if

aφ(n)/d1(modn).

Facts & Assumptions

Given: Integers n1, a, and m1 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 indg(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 n1, [a]n is a unit if and only if gcd(a,n)=1).

Proof

technique · direct
1.1

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

L1L2L6choosealgebra
1.2

Again by [L1] and [L3], af/d=1 exactly when fkf/d. Since df by [L5], this is equivalent to dk.

L1L3L5algebra
2.1

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

step 1.1L2L3L4
3.1

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

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

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

Statement

Let n1 admit a primitive root, let gcd(a,n)=1, and let m1. If xma(modn) is solvable, then it has exactly

gcd(φ(n),m)

solution classes modulo n.

Facts & Assumptions

Given: The stated hypotheses and the solvability of xma(modn).

[L1]

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

[L2]

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

[L3]

For u,vZ and f1, the congruence uyv(modf) is solvable exactly when gcd(u,f)v, and when solvable it has exactly gcd(u,f) solution classes in Z/f (For n1, axb(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 n1, [a]n is a unit if and only if gcd(a,n)=1).

Proof

technique · direct
1.1

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

L1choose
1.2

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

L4givenalgebra
2.1

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 myr(modf).

step 1.1step 1.2L1L2
3.1

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.

step 2.1L3
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 n1, [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(p1) (For a prime p and k1, φ(pk)=pkpk1).

[L5]
[L6]

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

Proof

technique · cases
1.1

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 p1r by [L1] and [L3]. By [L2], r also divides p(p1), and hence r is either p1 or p(p1).

givenL1L2L3algebra
1.2

For every r1, induction using the product law gives (g+p)rgr+rpgr1(modp2).

L4L5L6
2.1

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

assume-case firststep 1.1
2.2

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

assume-case secondstep 1.1step 1.2L1L5
3.1

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

step 2.1step 2.2cases-exhaustive
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 s1, (1+psu)p1+ps+1u(modps+2)

Statement

If p is an odd prime, s1, and uZ, then

(1+psu)p1+ps+1u(modps+2).

Facts & Assumptions

Given: An odd prime p, an integer s1, and uZ.

[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.1

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

L1L2L5
1.2

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

L2L3algebra
2.1

Substitute z=psu in step 1.1. For 2r<p, step 1.2 makes the rth term divisible by p1+sr, hence by ps+2; the final term is divisible by psp, and sps+2 because p3 and s1.

step 1.1step 1.2algebra
3.1

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

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

For odd prime p, pu, and k1, the class of 1+pu has order pk1 modulo pk

Statement

Let p be an odd prime and uZ with pu. For every k1, the class of 1+pu in (Z/pk)× has order pk1.

Facts & Assumptions

Given: An odd prime p, an integer u not divisible by p, and k1.

[L1]

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

[L2]

If pv and s1, then (1+psv)p1+ps+1v(modps+2) (For odd prime p and s1, (1+psu)p1+ps+1u(modps+2)).

[L5]

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

Proof

technique · induction
1.1

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

basegivenL4
1.2

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

ihL2L3L4
1.3

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

givenL1algebra
2.1

By induction, vp((1+pu)pj1)=j+1 for every j0.

step 1.1step 1.2L5
3.1

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

step 1.3step 2.1L4L6discharge-induction
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

For every odd prime p and k1, (Z/pkZ)× is cyclic of order pk1(p1)

Statement

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

φ(pk)=pk1(p1).

Facts & Assumptions

Given: An odd prime p and an integer k1.

[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 pu, the class 1+pu has order pk1 modulo pk (For odd prime p, pu, and k1, the class of 1+pu has order pk1 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.1

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 gp1=1+pu for some integer u, while primitivity modulo p2 and [L4] show pu.

L1L4choosealgebra
2.1

Reduction modulo p shows that the order of g modulo pk is divisible by p1, while [L2] applied to step 1.1 shows that the order of gp1 is pk1.

step 1.1L2L4
3.1

The cyclic subgroup generated by gp1 lies in that generated by g, so [L5] and step 2.1 make pk1 divide the order of g. That order is also divisible by p1 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 pk1(p1). Therefore it equals that group order.

step 2.1L3L5L6algebra
4.1

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

step 3.1L3
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 k1, then there are exactly φ(φ(pk)) primitive roots modulo pk.

Facts & Assumptions

Given: An odd prime p and k1.

[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.1

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

L1L2
2.1

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

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

For k3, the class of 5 has order 2k2 modulo 2k

Statement

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

Facts & Assumptions

Given: An integer k3.

[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 n1, [a]n is a unit if and only if gcd(a,n)=1).

Proof

technique · induction
1.1

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

baseL3L5algebra
1.2

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

ihL2L3
2.1

By induction, v2(52j1)=j+2 for all j0.

step 1.1step 1.2L4
3.1

Step 2.1 with j=k2 gives 52k21(mod2k), while the case j=k3 gives 52k3≢1(mod2k).

step 2.1L3
4.1

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

step 1.1step 3.1L1discharge-induction
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

For k3, (Z/2kZ)×C2×C2k2, generated uniquely as (1)ε5j

Statement

For every k3,

(Z/2k)×C2×C2k2.

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

Facts & Assumptions

Given: An integer k3.

[L1]

The class of 5 has order 2k2 modulo 2k (For k3, the class of 5 has order 2k2 modulo 2k).

[L3]

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

[L4]

The units modulo 2k are the classes represented by odd integers (For n1, [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 n1).

[L6]

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

Proof

technique · direct
1.1

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

L1algebra
1.2

Every power of 5 is 1 modulo 4, whereas 1 is 3 modulo 4; hence 15={1}.

algebra
2.1

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

step 1.1step 1.2L4L5
3.1

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

step 2.1L2L3
4.1

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

step 3.1L6
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,,nr1 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/Ni<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 n1, 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 n1).

[L3]

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

Proof

technique · direct
1.1

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

L1L2
1.2

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.

L1L2choose
2.1

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

step 1.1step 1.2L1L2
3.1

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

step 2.1L1L3
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 n1 have prime-power factorisation n=2ai<rpiki, where the pi are distinct odd primes and ki1. Then

(Z/n)×U2,a×i<rCpiki1(pi1),

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

U2,a=C2×C2a2(a3).

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 pk1(p1) (For every odd prime p and k1, (Z/pkZ)× is cyclic of order pk1(p1)).

[L4]

Given an injective list of primes containing every prime divisor of n1, one has n=ipivpi(n), the exponents being determined by n (For n1 and any injective list p:rZ of primes containing every prime divisor of n, one has n=i<rpivpi(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 k1, φ(pk)=pkpk1).

[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 n1).

Proof

technique · direct
1.1

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.

L4L1
2.1

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

step 1.1L2L3
2.2

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.

step 1.1L5L6L7
3.1

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

step 2.1step 2.2L1
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 n1, 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 n1, 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 n1 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,bZ 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,n1, 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.1

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

L2choose
1.2

Let r0,,rk1 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 sm exactly when rim for every i<s: at s=0 both sides always hold, and s+1m holds exactly when sm and rsm, 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.

L1L2L3L4L5algebra
2.1

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.

step 1.1step 1.2L3L4L6
3.1

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.

step 2.1step 1.2L1L2
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)=pk1(p1)(p odd, k1),

λ(2)=1,λ(4)=2,λ(2k)=2k2(k3).

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

λ(n)=lcmi<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 lcmi<0ai:=1 and lcmi<s+1ai:=lcm(lcmi<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,bZ 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.1

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

L1L2L3
1.2

Let a0,,ar1 be the factor exponents and s=lcmi<sai as defined in the Statement from the binary operation of [L4]. Induction on s shows that a positive integer m satisfies sm exactly when aim 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 sm and asm, 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.

L1L3L4L5algebra
2.1

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

step 1.2L2
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 n1 and gcd(a,n)=1, then

aλ(n)1(modn).

Facts & Assumptions

Given: Integers n1 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 n1, [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.1

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

L2
2.1

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.

step 1.1L1L3
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 n1 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)=p1; in particular φ(2)=1 (φ(1)=1, and φ(p)=p1 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 n1).

Proof

technique · direct
1.1

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

L1
1.2

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)×.

L3L4algebra
2.1

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

step 1.1step 1.2L2
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 k1.

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.1

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.

L2L4
1.2

Conversely, write n=2apiki. If a3, [L2] contains cyclic factors of orders 2 and 2a2, 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.

L2L3
1.3

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.

L2L3
2.1

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

step 1.1L1
3.1

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

step 2.1step 1.2step 1.3L1
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

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

Statement

If n1 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.1

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

givenL1
2.1

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

step 1.1L2

5 · Examples, counterexamples and false statements

None yet.

Sources