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.

✓ 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:1≤x≤(p−1)/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=(p−1)/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 a∈Z and b>0 there are unique q,r∈Z with a=qb+r and 0≤r<b).

[L3]

For each 1≤x≤m, 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 p∤a permutes an odd prime's signed half-system up to sign).

Proof

technique · direct
1.1L2givenalgebra

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

2.1step 1.1L1L3algebra∎

In the notation of [L3], ρx=ux when εx=1 and ρx=p−ux 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 ∑xx≡Sp,q+∑xρx(mod2), because p and q are odd. Also ∑xρx≡∑xux+N(q,p)(mod2), while the permutation in [L3] gives ∑xux=∑xx. Hence Sp,q≡N(q,p)(mod2), and [L1] yields (qp)=(−1)Sp,q.

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=(p−1)(q−1)/4.

Facts & Assumptions

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

[L1]

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

[L2]

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

Proof

technique · direct
1.1L2given

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

2.1step 1.1L1algebra∎

The points of R with py<qx are exactly those counted by Sp,q: the inequality itself forces y<q/2, hence y≤(q−1)/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 ((p−1)/2)((q−1)/2)=(p−1)(q−1)/4.

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)(p−1)(q−1)/4.

Equivalently, the two Legendre symbols agree unless p≡q≡3(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=(p−1)(q−1)/4 (The two reciprocity lattice counts partition an open rectangle).

Proof

technique · direct
1.1L1L2algebra

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

2.1step 1.1algebra∎

The exponent is ((p−1)/2)((q−1)/2), which is odd exactly when both factors are odd, equivalently when p≡q≡3(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.

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

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

Definition

Let a∈Z and let n be an odd positive integer. For odd n≥1 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 g0g1⋯gn−1 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 n≥1 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.1L1L2L3algebra

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.

2.1step 1.1L1L3L4algebra∎

If a≡b(modn), then a≡b(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.

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 n≥1 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.1L1L2algebra

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

2.1L1L3L4L5algebra∎

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.

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 n≥1).

[L4]

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

[L5]

A group homomorphism f:G→H is a function satisfying f(xy)=f(x)f(y) for all x,y∈G (Monoid homomorphism and group homomorphism).

Proof

technique · direct
1.1L1L3L4

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

2.1step 1.1L2L5∎

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.

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)(n−1)/2,(2n)=(−1)(n2−1)/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)(p−1)/2 (First supplement: (−1/p)=(−1)(p−1)/2).

[L4]

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

Proof

technique · direct
1.1L1L2L3algebra

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

2.1L1L2L4algebra∎

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

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)(m−1)(n−1)/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)(p−1)(q−1)/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.1L1L2L3L4L5givenalgebra

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(pi−1)(qj−1)/4.

2.1step 1.1L2algebra∎

For a product of odd integers, repeated use of (uv−1)/2≡(u−1)/2+(v−1)/2(mod2) gives (m−1)/2≡∑iαi(pi−1)/2 and (n−1)/2≡∑jβj(qj−1)/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.

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 a∈Z and let n≥1 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(N2−1)/8, then replace it by ε(−1)(b−1)(N−1)/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)(N2−1)/8 (The two supplementary laws for the Jacobi symbol).

[L5]

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

[L6]

Proof

technique · direct
1.1L1L2L3L4L5L6L7algebra

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(N2−1)/8(bN). When gcd⁡(b,N)=1, [L5] gives (bN)=(−1)(b−1)(N−1)/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.

2.1step 1.1L6algebra

At a nonterminal update, 0<r<N and the new denominator is the positive odd part b≤r, 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.

3.1step 1.1step 2.1L1L6∎

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.

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

Proof

technique · direct
1.1L1L2givenalgebra

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

2.1step 1.1L1algebra∎

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

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 a∈Z 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.1L1given

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

2.1step 1.1given∎

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

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 k≥1, and let a,xk∈Z satisfy p∤a and xk2≡a(modpk). Then there is a unique class t(modp) such that (xk+tpk)2≡a(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 k≥1, and integers a,xk with p∤a and xk2≡a(modpk).

[L1]

If d=gcd⁡(c,n), then ct≡b(modn) is soluble exactly when d∣b, and when soluble it has exactly d solution classes modulo n (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).

[L2]

If a prime p divides a product uv, then p∣u or p∣v (Euclid's lemma: if p is prime and p∣ab then p∣a or p∣b).

Proof

technique · direct
1.1L2L3given

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

2.1step 1.1L1algebra∎

Write xk2−a=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)2−a=pk(c+2xkt+t2pk). Since k≥1, the lift is a root modulo pk+1 exactly when 2xkt≡−c(modp). By step 1.1 and [L1], this linear congruence has exactly one solution class t modulo p.

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, k≥1, and p∤a, the congruence x2≡a(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 k≥1, and an integer a with p∤a.

[L1]

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

[L2]

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

[L3]

For p∤a, 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.1L2L3given

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

1.2L1L2L3

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 k−1 to lift each class uniquely; the two lifted classes remain distinct because their reductions modulo p are distinct.

2.1step 1.1step 1.2L1∎

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.

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 x2≡a(mod2) has exactly one solution class.
  • Modulo 4, it is soluble if and only if a≡1(mod4), and then it has exactly two solution classes.
  • For k≥3, the congruence x2≡a(mod2k) is soluble if and only if a≡1(mod8); when soluble, the number of roots is one for modulus 2, two for modulus 4, and four for modulus 2k with k≥3.

Facts & Assumptions

Given: An odd integer a and an integer exponent k≥1.

[L1]

For k≥3, every unit modulo 2k has a unique representation (−1)ε5j with ε∈{0,1} and j modulo 2k−2 (For k≥3, (Z/2kZ)×≅C2×C2k−2, generated uniquely as (−1)ε5j).

Proof

technique · direct
1.1givenalgebra

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.

1.2L1algebra

Let k≥3 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 a≡1(mod8).

2.1step 1.1step 1.2L1algebra∎

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

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 n≥1 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 p∣n one must have (a/p)=1; for the factor 2e, there is no additional condition when e≤1, one needs a≡1(mod4) when e=2, and one needs a≡1(mod8) when e≥3. 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, k≥1, and p∤a, the congruence x2≡a(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 a≡1(mod4) modulo 4, and is a≡1(mod8) modulo 2k for k≥3 (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.1L3L4L5

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.

2.1step 1.1L1L2L3choose∎

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.

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 n≥1. The number of square roots is the product of the local root counts.

More explicitly, write n=2e∏i<rpiei with distinct odd primes pi. The number of roots of x2≡a(modn) is 2rce, where

ce={1,e=0 or e=1,2,e=2,4,e≥3.

For odd n=∏i<rpiei, the soluble unit congruence x2≡a(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 x2≡a(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 e≥3 (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.1L3L4given

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.

2.1step 1.1L1L2algebra∎

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.

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:u∈Un}. Then

Un2≤ker⁡χ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,2r−1,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 x2≡a(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 k≥1, the group (Z/pk)× is cyclic of even order pk−1(p−1) (For every odd prime p and k≥1, (Z/pkZ)× is cyclic of order pk−1(p−1)).

[L5]

The Chinese remainder map gives Un≅∏i<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:G→H, one has G/ker⁡f≅im⁡f (First isomorphism theorem for groups: G/ker⁡f≅im⁡f).

[L7]

If G is finite and H≤G, 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 K≤H≤G and G is finite, then [G:K]=[G:H][H:K] (For K≤H≤G 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:G→H, ker⁡f={g∈G:f(g)=eH} and im⁡f={f(g):g∈G} (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.1L1L2L11algebra

Since Un is abelian, the squaring map s:Un→Un, 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 Un2≤ker⁡χn.

1.2L3L5L6L7L8algebra

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]=∣ker⁡s∣=2r. This also holds for r=0, when [L5] identifies U1 with the one-element group.

1.3L1L4L5L10L12L13L14choose

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.

2.1step 1.1step 1.2step 1.3L1L6L7L8L9L11algebra∎

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 Un2≤ker⁡χn≤Un and using step 1.2 gives [ker⁡χn:Un2]=2r−1.

5 · Examples, counterexamples and false statements

None yet.

Sources