Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16
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.

An odd prime has (p−1)/2 nonzero quadratic residues and as many nonresidues

Statement

For an odd prime p, exactly (p−1)/2 nonzero classes are quadratic residues modulo p, and exactly (p−1)/2 are quadratic nonresidues. Each nonzero quadratic residue has exactly two square roots modulo p, while each nonresidue has none.

Facts & Assumptions

Given: An odd prime p.

[L1]

The nonzero quadratic-residue classes form the subgroup ((Z/p)×)2={u2:u∈(Z/p)×}, and this subgroup has index two in (Z/p)× (The nonzero squares modulo an odd prime form an index-two subgroup).

[L2]

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

[L3]

Under its primitive-root, coprimality, positivity, and solubility hypotheses, xm≡a(modn) has exactly gcd⁡(φ(n),m) solution classes (If n has a primitive root, gcd⁡(a,n)=1, m≥1, and xm≡a(modn) is solvable, then it has exactly gcd⁡(φ(n),m) solution classes modulo n).

[L4]

Every prime admits a primitive root modulo that prime (Every prime modulus admits a primitive root).

[L5]

For every prime p, φ(p)=p−1 (φ(1)=1, and φ(p)=p−1 for every prime p).

[L6]

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

Proof

technique · direct
1.1L1L2L6given

Let Q={u2:u∈G} be the subgroup of nonzero square classes, which by [L1] is exactly the set of quadratic-residue classes. By [L1], [G:Q]=2 for G=(Z/p)×, and [L6] gives ∣G∣=p−1; hence [L2] gives ∣Q∣=(p−1)/2. Its complement in G has the same cardinality, and since [L1] identifies Q with the quadratic-residue classes, that complement consists exactly of the nonresidues.

1.2L3L4L5L7algebra

If a represents a class in Q, then p∤a, so [L7] gives gcd⁡(a,p)=1. Facts [L4] and [L5] discharge the prime specialisation of [L3], which gives gcd⁡(p−1,2)=2 roots because p is odd.

2.1L1step 1.1step 1.2∎

A nonresidue has no square root by the description of Q in [L1], while step 1.2 gives exactly two roots for each member of Q. Together with step 1.1, this proves all assertions.

Depends on

Used by

Dependency tree · two levels

46 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