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 nonzero quadratic residues and as many nonresidues
Statement
For an odd prime , exactly nonzero classes are quadratic residues modulo , and exactly are quadratic nonresidues. Each nonzero quadratic residue has exactly two square roots modulo , while each nonresidue has none.
Facts & Assumptions
Given: An odd prime .
The nonzero quadratic-residue classes form the subgroup , and this subgroup has index two in (The nonzero squares modulo an odd prime form an index-two subgroup).
If is finite and , then (Lagrange's theorem: for every subgroup of a finite group ).
Under its primitive-root, coprimality, positivity, and solubility hypotheses, has exactly solution classes (If has a primitive root, , , and is solvable, then it has exactly solution classes modulo ).
Every prime admits a primitive root modulo that prime (Every prime modulus admits a primitive root).
For every prime , (, and for every prime ).
The group is cyclic of order (For every prime , the multiplicative group is cyclic).
If , then and are coprime (For a prime and any integer , is when and otherwise; so makes and coprime).
Proof
Let be the subgroup of nonzero square classes, which by [L1] is exactly the set of quadratic-residue classes. By [L1], for , and [L6] gives ; hence [L2] gives . Its complement in has the same cardinality, and since [L1] identifies with the quadratic-residue classes, that complement consists exactly of the nonresidues.
If represents a class in , then , so [L7] gives . Facts [L4] and [L5] discharge the prime specialisation of [L3], which gives roots because is odd.
A nonresidue has no square root by the description of in [L1], while step 1.2 gives exactly two roots for each member of . Together with step 1.1, this proves all assertions.
Depends on
- The nonzero squares modulo an odd prime form an index-two subgroup
- Lagrange's theorem: $|G|=[G:H]|H|$ for every subgroup $H$ of a finite group $G$
- For every prime $p$, the multiplicative group $(\mathbb Z/p\mathbb Z)^\times$ is cyclic
- If $n$ has a primitive root, $\gcd(a,n)=1$, $m\ge1$, and $x^m\equiv a\pmod n$ is solvable, then it has exactly $\gcd(\varphi(n),m)$ solution classes modulo $n$
- Every prime modulus admits a primitive root
- $\varphi(1)=1$, and $\varphi(p)=p-1$ for every prime $p$
- For a prime $p$ and any integer $a$, $\gcd(p,a)$ is $p$ when $p \mid a$ and $1$ otherwise; so $p \nmid a$ makes $p$ and $a$ coprime
Used by
Dependency tree · next 3 levels
Direct dependencies and their dependencies through the next three levels: 131 results over 22 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.
Sources
- N. Mascot, Legendre Symbols and Quadratic Reciprocity, Chapter 3 (standard reference, not scraped)
- W. Stein, Elementary Number Theory, Section 4.1 (standard reference, not scraped)