Alphabeta Math
CorollaryStatement: 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.

x2≡a(modp) has exactly 1+(a/p) solution classes

Statement

For every integer a and odd prime p, the congruence

x2≡a(modp)

has exactly 1+(a/p) solution classes modulo p.

Facts & Assumptions

Given: An integer a and an odd prime p.

[L1]

The Legendre symbol is 0 when p∣a, 1 when a is a quadratic residue modulo p, and −1 when a is a quadratic nonresidue (The Legendre symbol, including its zero value).

[L4]

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

[L5]

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

[L6]

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

Proof

technique · direct
1.1L1L2L3given

If p∣a, the equation in the field [L2] is [x]p2=[0]p. Since [L3] gives no zero divisors, [x]p=[0]p is the unique solution. This count is 1+0 by [L1].

1.2L1L4L5L6L7algebra

Suppose p∤a. By [L7], gcd⁡(a,p)=1. If (a/p)=1, the congruence is soluble by [L1], and [L4], [L5], and [L6] give exactly gcd⁡(p−1,2)=2 roots. If (a/p)=−1, [L1] says that no root exists.

2.1L1step 1.1step 1.2∎

The three possible symbol values 0,1,−1 therefore give respectively one, two, and zero solution classes, which in every case equals 1+(a/p).

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