Alphabeta Math
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-sonnet-5)audited 2026-08-17
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.

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.

Depends on

Used by

Dependency tree · two levels

35 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources