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.

17 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 3 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Quadratic Reciprocity and the Jacobi Symbol

1 · Prerequisites

2 · Summary

Gauss's lemma turns a Legendre symbol into the parity of a finite lower-half count. For two distinct odd primes, the two counts occupy opposite sides of a rectangle with no lattice point on its diagonal, so their sum gives the sign in quadratic reciprocity. After Gauss's lemma and its half-system permutation, the rectangle argument uses integer division, rational inequalities, and finite sets; it does not use a floor function or any result from real analysis.

The Jacobi symbol multiplies the prime Legendre symbols in an odd denominator's canonical factorisation, with value zero for noncoprime arguments and empty-product value one at denominator one. Its multiplicativity, supplementary laws, and reciprocity yield a terminating Euclidean evaluation algorithm. On unit groups it is a sign character: every square lies in its kernel, but the kernel can be larger. Direct lifting at odd prime powers, the separate criterion for powers of two, and the Chinese remainder theorem then give a complete criterion and exact count for unit square roots modulo a positive integer.

3 · Logical flowchart

4 · Definitions, theorems and proofs

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

Gauss's lemma as a lower-half lattice-point count

Statement

Let p and q be distinct odd primes. Put Sp,q:={(x,y)Z2:1x(p1)/2, 0<py<qx}.

Then (qp)=(1)Sp,q.

Thus Gauss's sign count (Gauss's quadratic-residue lemma) can be read as the parity of a finite set of lattice points, without introducing floor notation.

Facts & Assumptions

Given: Distinct odd primes p,q, and m=(p1)/2.

[L1]

If N(q,p) is the number of least positive residues of q,2q,,mq modulo p that exceed p/2, then (qp)=(1)N(q,p) (Gauss's quadratic-residue lemma).

[L2]

For every integer A and positive integer p, there are unique integers t,ρ such that A=pt+ρ and 0ρ<p (Division with remainder in Z: for aZ and b>0 there are unique q,rZ with a=qb+r and 0r<b).

[L3]

For each 1xm, there are unique εx{1,1} and ux{1,,m} such that qxεxux(modp), and u1,,um is a permutation of 1,,m (Multiplication by a with pa permutes an odd prime's signed half-system up to sign).

Proof

technique · direct
1.1

For each 1xm, [L2] gives qx=ptx+ρx with 0ρx<p; since pqx, one has 0<ρx<p. The positive integers y satisfying py<qx=ptx+ρx are exactly 1,,tx, so Sp,q=x=1mtx.

L2givenalgebra
2.1

In the notation of [L3], ρx=ux when εx=1 and ρx=pux when εx=1; the negative signs are exactly the residues counted by N(q,p). Summing the equations of step 1.1 and reducing modulo 2 gives xxSp,q+xρx(mod2), because p and q are odd. Also xρxxux+N(q,p)(mod2), while the permutation in [L3] gives xux=xx. Hence Sp,qN(q,p)(mod2), and [L1] yields (qp)=(1)Sp,q.

step 1.1L1L3algebra
LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

The two reciprocity lattice counts partition an open rectangle

Statement

Let p and q be distinct odd primes, and let Sp,q and Sq,p be the lower-half lattice counts of Gauss's lemma as a lower-half lattice-point count. Then Sp,q+Sq,p=(p1)(q1)/4.

Facts & Assumptions

Given: Distinct odd primes p,q and the integer rectangle R={(x,y):1x(p1)/2, 1y(q1)/2}.

[L1]

Put Sp,q:={(x,y)Z2:1x(p1)/2, 0<py<qx} (Gauss's lemma as a lower-half lattice-point count).

[L2]

If a prime p divides a product ab, then pa or pb (Euclid's lemma: if p is prime and pab then pa or pb).

Proof

technique · direct
1.1

No point (x,y)R lies on the diagonal py=qx: equality would give pqx, so [L2] would give pq or px; distinctness of the primes rules out the first alternative, while 1x(p1)/2<p rules out the second. Thus every point of R satisfies exactly one of py<qx and qx<py.

L2given
2.1

The points of R with py<qx are exactly those counted by Sp,q: the inequality itself forces y<q/2, hence y(q1)/2; after interchanging the coordinates and the primes, the points with qx<py are exactly those counted by Sq,p. By step 1.1 these two sets partition R, whose cardinality is ((p1)/2)((q1)/2)=(p1)(q1)/4.

step 1.1L1algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

Quadratic reciprocity for distinct odd primes

Statement

For distinct odd primes p,q, (pq)(qp)=(1)(p1)(q1)/4.

Equivalently, the two Legendre symbols agree unless pq3(mod4), in which case they have opposite signs.

Facts & Assumptions

Given: Distinct odd primes p and q.

[L1]

For distinct odd primes p,q, the lower-half count satisfies (qp)=(1)Sp,q (Gauss's lemma as a lower-half lattice-point count).

[L2]

For the two orientations of the rectangle, Sp,q+Sq,p=(p1)(q1)/4 (The two reciprocity lattice counts partition an open rectangle).

Proof

technique · direct
1.1

Applying [L1] in both orientations, multiplying, and then using [L2] gives (pq)(qp)=(1)Sq,p+Sp,q=(1)(p1)(q1)/4.

L1L2algebra
2.1

The exponent is ((p1)/2)((q1)/2), which is odd exactly when both factors are odd, equivalently when pq3(mod4). Since the Legendre symbols are signs for distinct primes, their product is then 1, and in every other case it is 1, proving the equivalent formulation.

step 1.1algebra
DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-08-17Open item page →

The Jacobi symbol, with its zero value and empty-product convention

Definition

Let aZ and let n be an odd positive integer. For odd n1 with canonical prime factorisation n=i<rpiei, define (an):=i<r(api)ei.

This is the Jacobi symbol of a modulo n. The prime factors are distinct, every exponent is positive, and each factor on the right is a Legendre symbol (The Legendre symbol, including its zero value). When n=1, the factor list is empty and the finite-product convention (The product g0g1gn1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity) gives

(a1)=1.

The value is 0 exactly when gcd(a,n)>1, and (a1)=1. Independence from the ordering of the canonical factors, dependence only on a(modn), and the stated zero criterion are proved in The Jacobi symbol is well defined on numerator residue classes .

PropositionStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-17Open item page →

The Jacobi symbol is well defined on numerator residue classes

Statement

For every integer a and odd positive integer n, the product in The Jacobi symbol, with its zero value and empty-product convention is independent of the ordering used to list the canonical prime factors and belongs to {1,0,1}. The Jacobi symbol depends only on a(modn), and it is zero exactly when gcd(a,n)>1. At n=1 it has the value 1.

Facts & Assumptions

Given: An integer a and an odd positive integer n.

[L1]

For odd n1 with canonical prime factorisation n=i<rpiei, define (an):=i<r(api)ei (The Jacobi symbol, with its zero value and empty-product convention).

[L3]

For every odd prime p, the Legendre symbol belongs to {1,0,1}, depends only on the numerator modulo p, and equals zero exactly when p divides the numerator (The Legendre symbol is well defined on residue classes).

Proof

technique · direct
1.1

The uniqueness in [L2] fixes the set of prime factors and every exponent in [L1]; changing their order does not change a finite product of integers. Each factor belongs to {1,0,1} by [L3], so their product does too, and at n=1 the empty product is 1.

L1L2L3algebra
2.1

If ab(modn), then ab(modp) for every prime factor p of n, so [L3] makes every corresponding factor in [L1] equal. The product is zero exactly when some prime factor p of n divides a, which gives gcd(a,n)>1; conversely, if gcd(a,n)>1, [L4] supplies a prime divisor of the gcd, hence a prime factor of n dividing a, and [L3] makes that Legendre factor zero.

step 1.1L1L3L4algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

The Jacobi symbol is multiplicative in numerator and denominator

Statement

For integers a,b and an odd positive integer n,

(abn)=(an)(bn).

For an integer a and odd positive integers m,n,

(amn)=(am)(an).

No coprimality hypothesis is imposed on either pair of arguments.

Facts & Assumptions

Given: Integers a,b and odd positive integers m,n.

[L1]

For odd n1 with canonical prime factorisation n=i<rpiei, the Jacobi symbol is (an)=i<r(api)ei (The Jacobi symbol, with its zero value and empty-product convention).

[L2]

For every odd prime p and integers a,b, (abp)=(ap)(bp) (The Legendre symbol is multiplicative for all integer numerators).

Proof

technique · direct
1.1

Apply [L2] to every prime factor in [L1] and regroup the finite product: (abn)=i(api)eii(bpi)ei=(an)(bn). This remains valid when a Legendre factor is zero.

L1L2algebra
2.1

By [L5], choose finite prime factorisations of m and n; concatenating their factor lists gives a prime factorisation of mn. Grouping equal primes and using [L3] and [L4], the exponent of each prime in mn is the sum of its exponents in m and n. Substituting those sums in [L1] and regrouping gives (amn)=(am)(an). If either denominator is 1, its factor list is empty and its contribution is 1.

L1L3L4L5algebra
PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

For fixed odd modulus, the Jacobi symbol is a homomorphism on the unit group

Statement

Fix an odd positive integer n. The assignment χn([a]n)=(an) is a group homomorphism (Z/n)×{±1}.

Here {±1} is the two-element multiplicative group, except that the image is the one-element subgroup {1} when the character is trivial.

Facts & Assumptions

Given: An odd positive integer n and unit classes [a]n,[b]n(Z/n)×.

[L1]

The Jacobi symbol belongs to {1,0,1}, depends only on a(modn), and is zero exactly when gcd(a,n)>1 (The Jacobi symbol is well defined on numerator residue classes).

[L2]

For odd positive n, (abn)=(an)(bn) (The Jacobi symbol is multiplicative in numerator and denominator).

[L3]

The unit group (Z/n)× consists of the invertible residue classes modulo n under multiplication (The unit group (Z/n)× and Euler's totient φ(n)=(Z/n)× for n1).

[L4]

The class [a]n is a unit if and only if gcd(a,n)=1 (For n1, [a]n is a unit if and only if gcd(a,n)=1).

[L5]

A group homomorphism f:GH is a function satisfying f(xy)=f(x)f(y) for all x,yG (Monoid homomorphism and group homomorphism).

Proof

technique · direct
1.1

By [L1], the value (an) depends only on the residue class. By [L3] and [L4], a unit class has gcd(a,n)=1, so [L1] rules out the value zero; hence χn is a well-defined function from (Z/n)× to {±1}.

L1L3L4
2.1

For unit classes [a]n and [b]n, [L2] gives χn([a]n[b]n)=χn([ab]n)=χn([a]n)χn([b]n), which is the condition in [L5]. Thus χn is a group homomorphism, including when n=1 and the unit group has one element.

step 1.1L2L5
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

The two supplementary laws for the Jacobi symbol

Statement

For every odd positive integer n,

(1n)=(1)(n1)/2,(2n)=(1)(n21)/8.

Both formulas include n=1, where each Jacobi symbol and each displayed power of 1 equals 1.

Facts & Assumptions

Given: An odd positive integer n.

[L1]

The Jacobi symbol is the product of the prime Legendre symbols, taken with the multiplicities in the canonical prime factorisation (The Jacobi symbol, with its zero value and empty-product convention).

[L2]

For odd positive u,v, (auv)=(au)(av) (The Jacobi symbol is multiplicative in numerator and denominator).

[L3]

For every odd prime p, (1p)=(1)(p1)/2 (First supplement: (1/p)=(1)(p1)/2).

[L4]

For every odd prime p, (2p)=(1)(p21)/8 (Second supplement: (2/p)=(1)(p21)/8).

Proof

technique · direct
1.1

Expand (1n) through [L1], applying [L3] to every prime factor with multiplicity and [L2] to multiply the contributions. For odd u,v, the difference (uv1)/2(u1)/2(v1)/2=(u1)(v1)/2 is even, so iteration through the factor list gives (1n)=(1)(n1)/2; for the empty factor list n=1, both sides are 1.

L1L2L3algebra
2.1

Similarly, [L1] and [L4] give the product of the signs (1)(p21)/8 with multiplicity. For odd u,v, the difference ((uv)21)/8(u21)/8(v21)/8=(u21)(v21)/8 is even, because each of u21 and v21 is divisible by 8. Iterating this identity gives (2n)=(1)(n21)/8, again with value 1 at n=1.

L1L2L4algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

Quadratic reciprocity for coprime odd Jacobi denominators

Statement

For coprime odd positive integers m,n,

(mn)(nm)=(1)(m1)(n1)/4.

The formula includes m=1 or n=1.

Facts & Assumptions

Given: Coprime odd positive integers m,n.

[L1]

For distinct odd primes p,q, (pq)(qp)=(1)(p1)(q1)/4 (Quadratic reciprocity for distinct odd primes).

[L2]

For an odd positive denominator, the Jacobi symbol is the product of the Legendre symbols over its canonical prime factors with multiplicity (The Jacobi symbol, with its zero value and empty-product convention).

[L3]

The Jacobi symbol is multiplicative in both its numerator and its odd positive denominator (The Jacobi symbol is multiplicative in numerator and denominator).

Proof

technique · direct
1.1

By [L5], m and n have finite prime factorisations; grouping equal factors and using [L4], write their canonical forms as m=ipiαi and n=jqjβj. Expanding both Jacobi symbols by [L2] and [L3] expresses their product as i,j[(piqj)(qjpi)]αiβj. Coprimality makes every pi distinct from every qj, so [L1] turns this into (1)E, where E=i,jαiβj(pi1)(qj1)/4.

L1L2L3L4L5givenalgebra
2.1

For a product of odd integers, repeated use of (uv1)/2(u1)/2+(v1)/2(mod2) gives (m1)/2iαi(pi1)/2 and (n1)/2jβj(qj1)/2 modulo 2. Their product is congruent to E, so step 1.1 gives the stated sign. If either integer is 1, the relevant prime list and cross-product are empty and both sides equal 1.

step 1.1L2algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

The Euclidean algorithm computes the Jacobi symbol without factoring the denominator

Statement

Let aZ and let n1 be odd. Starting from (ε,A,N)=(1,a,n), repeat the following deterministic procedure:

  • if N=1, return ε;
  • otherwise let r be the least nonnegative remainder of A modulo N, and return 0 if r=0;
  • write r=2sb with b odd, replace ε by ε(1)s(N21)/8, then replace it by ε(1)(b1)(N1)/4 and replace (A,N) by (N,b).

The Euclidean Jacobi algorithm terminates and returns (an) without factoring the odd denominator n.

Facts & Assumptions

Given: An integer a, an odd positive integer n, and the algorithmic state described in the Statement.

[L1]

The Jacobi symbol satisfies (a1)=1 and is zero exactly when gcd(a,n)>1 (The Jacobi symbol, with its zero value and empty-product convention).

[L2]

The Jacobi symbol depends only on its numerator modulo the odd positive denominator (The Jacobi symbol is well defined on numerator residue classes).

[L3]

For odd positive N, (uvN)=(uN)(vN) (The Jacobi symbol is multiplicative in numerator and denominator).

[L4]

For odd positive N, (2N)=(1)(N21)/8 (The two supplementary laws for the Jacobi symbol).

[L5]

For coprime odd positive b,N, (bN)(Nb)=(1)(b1)(N1)/4 (Quadratic reciprocity for coprime odd Jacobi denominators).

[L6]

Proof

technique · direct
1.1

Maintain the invariant (an)=ε(AN). By [L2] and [L6], replacing A by r preserves the current symbol. If r=2sb, then [L3] and [L4] give (rN)=(1)s(N21)/8(bN). When gcd(b,N)=1, [L5] gives (bN)=(1)(b1)(N1)/4(Nb); when the gcd exceeds 1, [L1] makes both Jacobi symbols zero, so the same signed equality remains true. Thus every nonterminal update preserves the invariant.

L1L2L3L4L5L6L7algebra
2.1

At a nonterminal update, 0<r<N and the new denominator is the positive odd part br, so it is strictly smaller than N. A strictly decreasing chain of positive integers cannot have more terms than its initial value, so the procedure reaches a terminal state.

step 1.1L6algebra
3.1

If N=1, [L1] and the invariant give (an)=ε. If r=0 while N>1, then N divides A, so [L1] gives (AN)=0 and the invariant gives the returned value 0. These are all terminal states, proving correctness and termination; only division, extraction of powers of 2, and sign updates were used, not a factorisation of n.

step 1.1step 2.1L1L6
PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

A unit square modulo an odd integer has Jacobi symbol one

Statement

If a is a unit square modulo an odd positive integer n, then (an)=1.

Explicitly, if gcd(a,n)=1 and x2a(modn) for some integer x, then the Jacobi symbol of a modulo n is 1.

Facts & Assumptions

Given: An odd positive integer n and integers a,x such that gcd(a,n)=1 and x2a(modn).

[L1]

The assignment χn([u]n)=(un) is a group homomorphism (Z/n)×{±1} (For fixed odd modulus, the Jacobi symbol is a homomorphism on the unit group).

[L2]

A residue class [u]n is a unit if and only if gcd(u,n)=1 (For n1, [a]n is a unit if and only if gcd(a,n)=1).

Proof

technique · direct
1.1

By [L2], [a]n is a unit. If v is its inverse, then [x]n([x]nv)=[x]n2v=[a]nv=[1]n, so [x]n is also a unit and lies in the domain of [L1].

L1L2givenalgebra
2.1

Applying [L1] to [a]n=[x]n2 gives (an)=χn([a]n)=χn([x]n)2=1, since χn([x]n){±1}.

step 1.1L1algebra
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

Jacobi symbol minus one obstructs quadratic residuosity

Statement

Let n be an odd positive integer and let aZ satisfy gcd(a,n)=1. If (an)=1, then a is not a square modulo n.

Facts & Assumptions

Given: An odd positive integer n and an integer a with gcd(a,n)=1 and (an)=1.

[L1]

If a is a unit square modulo an odd positive integer n, then (an)=1 (A unit square modulo an odd integer has Jacobi symbol one).

Proof

technique · direct
1.1

If a were a square modulo n, the gcd hypothesis would make it a unit square and [L1] would give (an)=1.

L1given
2.1

This contradicts the given value (an)=1, so a is not a square modulo n.

step 1.1given
LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

A nonsingular square root lifts uniquely by one odd-prime-power step

Statement

Let p be an odd prime, let k1, and let a,xkZ satisfy pa and xk2a(modpk). Then there is a unique class t(modp) such that (xk+tpk)2a(modpk+1).

Equivalently, the root class of xk modulo pk has exactly one lift to a root class modulo pk+1.

Facts & Assumptions

Given: An odd prime p, an integer k1, and integers a,xk with pa and xk2a(modpk).

[L1]

If d=gcd(c,n), then ctb(modn) is soluble exactly when db, and when soluble it has exactly d solution classes modulo n (For n1, axb(modn) is solvable exactly when gcd(a,n)b, and then has exactly gcd(a,n) solution classes modulo n).

[L2]

If a prime p divides a product uv, then pu or pv (Euclid's lemma: if p is prime and pab then pa or pb).

Proof

technique · direct
1.1

Reducing the given congruence modulo p shows that pxk would force pa, contrary to the hypothesis. If p2xk, [L2] would give p2 or pxk; both are impossible because p is odd. Hence p2xk, and [L3] gives gcd(2xk,p)=1.

L2L3given
2.1

Write xk2a=cpk. Every class modulo pk+1 reducing to xk modulo pk has a unique form xk+tpk with t modulo p, and expansion gives (xk+tpk)2a=pk(c+2xkt+t2pk). Since k1, the lift is a root modulo pk+1 exactly when 2xktc(modp). By step 1.1 and [L1], this linear congruence has exactly one solution class t modulo p.

step 1.1L1algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

Unit square criterion and root count modulo odd prime powers

Statement

For an odd prime p, k1, and pa, the congruence x2a(modpk) is soluble if and only if (ap)=1.

When soluble it has exactly two solution classes modulo pk.

Facts & Assumptions

Given: An odd prime p, an integer k1, and an integer a with pa.

[L1]

Every root modulo pj has a unique lift to a root modulo pj+1 when j1 and pa (A nonsingular square root lifts uniquely by one odd-prime-power step).

[L2]

The congruence x2a(modp) has exactly 1+(a/p) solution classes modulo p (x2a(modp) has exactly 1+(a/p) solution classes).

[L3]

For pa, the Legendre symbol (a/p) is 1 when a is a square modulo p and 1 otherwise (The Legendre symbol, including its zero value).

Proof

technique · direct
1.1

Any root modulo pk reduces to a root modulo p. Since pa, [L3] makes (a/p) a sign, and [L2] says that a root exists only when 1+(a/p)=2, equivalently when (a/p)=1.

L2L3given
1.2

Conversely, if (a/p)=1, [L2] gives exactly two root classes modulo p. For k=1 these are the required roots. For k>1, repeatedly apply [L1] from exponent 1 through exponent k1 to lift each class uniquely; the two lifted classes remain distinct because their reductions modulo p are distinct.

L1L2L3
2.1

Every root modulo pk reduces to one of the two roots modulo p, and at every successive exponent [L1] forces it to be the unique lift of that reduction. Thus step 1.2 constructs all roots, so there are exactly two. Together with step 1.1 this proves both directions of the criterion and the count.

step 1.1step 1.2L1
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

Unit square criterion and root count modulo powers of two

Statement

Let a be odd.

  • Modulo 2, the congruence x2a(mod2) has exactly one solution class.
  • Modulo 4, it is soluble if and only if a1(mod4), and then it has exactly two solution classes.
  • For k3, the congruence x2a(mod2k) is soluble if and only if a1(mod8); when soluble, the number of roots is one for modulus 2, two for modulus 4, and four for modulus 2k with k3.

Facts & Assumptions

Given: An odd integer a and an integer exponent k1.

[L1]

For k3, every unit modulo 2k has a unique representation (1)ε5j with ε{0,1} and j modulo 2k2 (For k3, (Z/2kZ)×C2×C2k2, generated uniquely as (1)ε5j).

Proof

technique · direct
1.1

Modulo 2, the unique odd class is 1 and its square is 1. Modulo 4, the odd classes 1 and 3 both square to 1, so an odd target is soluble exactly when it is 1 modulo 4, and then both odd classes are roots.

givenalgebra
1.2

Let k3 and write a unit uniquely as (1)ε5j by [L1]. Squaring sends (ε,j) to (0,2j), so a unit is a square exactly when ε=0 and j is even. Modulo 8, the four coordinate-parity possibilities give residues 1,5,7,3, respectively, so this condition is equivalent to a1(mod8).

L1algebra
2.1

The kernel of the squaring map in the coordinates of [L1] has the two choices for ε and the two solutions of 2j=0 modulo 2k2, hence has four elements. Every nonempty fibre of a group homomorphism is a translate of its kernel, so every soluble target for k3 has exactly four roots. Together with step 1.1, this proves all criteria and counts.

step 1.1step 1.2L1algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

A unit is a square modulo n exactly when it is a square at every prime-power factor

Statement

Let n1 and let [a]n(Z/n)×. A unit is a square modulo n if and only if it is a square modulo every prime-power factor of n.

Equivalently, for every odd prime pn one must have (a/p)=1; for the factor 2e, there is no additional condition when e1, one needs a1(mod4) when e=2, and one needs a1(mod8) when e3. At n=1, the unique unit class is a square.

Facts & Assumptions

Given: A positive integer n and a unit class [a]n.

[L1]

For an odd prime p, k1, and pa, the congruence x2a(modpk) is soluble if and only if (ap)=1 (Unit square criterion and root count modulo odd prime powers).

[L2]

For powers of 2, the unit square criterion is automatic modulo 2, is a1(mod4) modulo 4, and is a1(mod8) modulo 2k for k3 (Unit square criterion and root count modulo powers of two).

[L3]

For pairwise coprime positive integers ni with product N, the Chinese remainder map gives (Z/N)×i(Z/ni)×, including the empty list (For pairwise coprime positive moduli, the Chinese remainder bijection restricts to an isomorphism of unit groups).

Proof

technique · direct
1.1

By [L5], n has a finite prime factorisation; grouping equal factors and using [L4] gives its uniquely determined nontrivial prime-power factors, which are pairwise coprime. Apply [L3] to identify the unit group modulo n with the product of their unit groups; when n=1, this is the empty product of groups and has one element.

L3L4L5
2.1

Under the isomorphism of step 1.1, a global square maps to a square in every component. Conversely, if every component is a square, choose one root in each of the finitely many nonempty local root sets and apply the inverse CRT isomorphism to obtain a global root. Substitution of [L1] and [L2] gives the explicit local conditions in the Statement, and the empty product handles n=1.

step 1.1L1L2L3choose
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17Open item page →

The number of square roots of a unit modulo n is the product of the local counts

Statement

Let [a]n be a unit square modulo n1. The number of square roots is the product of the local root counts.

More explicitly, write n=2ei<rpiei with distinct odd primes pi. The number of roots of x2a(modn) is 2rce, where

ce={1,e=0 or e=1,2,e=2,4,e3.

For odd n=i<rpiei, the soluble unit congruence x2a(modn) has exactly 2r roots. At n=1 the empty product gives one root.

Facts & Assumptions

Given: A positive integer n and a unit [a]n for which x2a(modn) is soluble.

[L1]

A soluble unit square congruence modulo an odd prime power has exactly two root classes (Unit square criterion and root count modulo odd prime powers).

[L2]

A soluble unit square congruence modulo 2e has one root for e=1, two roots for e=2, and four roots for e3 (Unit square criterion and root count modulo powers of two).

[L3]

The Chinese remainder map is a group isomorphism from the unit group modulo a product of pairwise coprime positive integers to the product of their unit groups, including the empty product (For pairwise coprime positive moduli, the Chinese remainder bijection restricts to an isomorphism of unit groups).

Proof

technique · direct
1.1

By [L4], group the finite prime factorisation of n into its pairwise coprime prime-power factors. Restrict the CRT isomorphism [L3] to the equation u2=[a]n. It gives a bijection from the global root set to the Cartesian product of the root sets in those components, because an element satisfies the global equation exactly when each component satisfies its local equation.

L3L4given
2.1

The cardinality of that finite Cartesian product is the product of its local cardinalities. Each odd-prime-power factor contributes 2 by [L1], while [L2] gives the factor ce for the two-part; if there are no prime-power factors, the empty product is 1. This is the displayed formula.

step 1.1L1L2algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-17Open item page →

The kernel of the Jacobi map and the subgroup of unit squares

Statement

Let n=i<rpiei be an odd positive integer in canonical prime factorisation, let Un=(Z/n)×, and let Un2={u2:uUn}. Then

Un2kerχn,[Un:Un2]=2r.

The Jacobi homomorphism χn is trivial if and only if n is a square. Consequently,

[kerχn:Un2]={2r,n is a square,2r1,n is not a square.

For n=1, one has r=0 and every group and index above is trivial and equal to one.

Facts & Assumptions

Given: An odd positive integer n=i<rpiei in canonical prime factorisation and its unit group Un.

[L1]

The assignment χn([a]n)=(an) is a group homomorphism Un{±1} (For fixed odd modulus, the Jacobi symbol is a homomorphism on the unit group).

[L2]

Every unit square modulo an odd positive integer has Jacobi symbol one (A unit square modulo an odd integer has Jacobi symbol one).

[L3]

For odd n=i<rpiei, the soluble unit congruence x2a(modn) has exactly 2r roots (The number of square roots of a unit modulo n is the product of the local counts).

[L4]

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

[L5]

The Chinese remainder map gives Uni<r(Z/piei)×, including the empty factorisation (For pairwise coprime positive moduli, the Chinese remainder bijection restricts to an isomorphism of unit groups).

[L6]

For a group homomorphism f:GH, one has G/kerfimf (First isomorphism theorem for groups: G/kerfimf).

[L7]

If G is finite and HG, then G=[G:H]H (Lagrange's theorem: G=[G:H]H for every subgroup H of a finite group G).

[L8]

For a finite-index subgroup, [G:H]=G/H (The coset set G/H and the index [G:H] of a subgroup).

[L9]

If KHG and G is finite, then [G:K]=[G:H][H:K] (For KHG with G finite, [G:K]=[G:H][H:K]).

[L10]

For an odd prime p, a unit is a square modulo pk if and only if its Legendre symbol modulo p is one (Unit square criterion and root count modulo odd prime powers).

[L11]

For a homomorphism f:GH, kerf={gG:f(g)=eH} and imf={f(g):gG} (The kernel and image of a group homomorphism).

[L14]

The Jacobi symbol is the product of the prime Legendre symbols with their canonical multiplicities (The Jacobi symbol, with its zero value and empty-product convention).

Proof

technique · direct
1.1

Since Un is abelian, the squaring map s:UnUn, s(u)=u2, is a homomorphism with image Un2. By [L2] and the kernel definition [L11], every element of Un2 lies in kerχn, so Un2kerχn.

L1L2L11algebra
1.2

The kernel of s is the root set of x2=1, which has 2r elements by [L3]. Applying [L6] to s and then [L7] and [L8] gives [Un:Un2]=kers=2r. This also holds for r=0, when [L5] identifies U1 with the one-element group.

L3L5L6L7L8algebra
1.3

By [L12] and [L13], n is a square exactly when every exponent ei is even. In that case [L14] makes every value of χn equal to 1. If some ej is odd, [L4] supplies a generator, hence a nonsquare, in (Z/pjej)×; [L10] gives it Legendre symbol 1. Combine it with identity elements in the other factors by [L5]. Formula [L14] gives the resulting global unit Jacobi value 1, so [L1] is surjective. Therefore χn is trivial exactly when n is a square.

L1L4L5L10L12L13L14choose
2.1

If n is a square, step 1.3 gives kerχn=Un, so step 1.2 yields [kerχn:Un2]=2r. Otherwise [L1], [L6], [L7], [L8], and [L11] give [Un:kerχn]=2; applying [L9] to Un2kerχnUn and using step 1.2 gives [kerχn:Un2]=2r1.

step 1.1step 1.2step 1.3L1L6L7L8L9L11algebra

5 · Examples, counterexamples and false statements

None yet.

Sources