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.
Quadratic Residues and the Legendre Symbol — Examples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Group Homomorphisms and the Isomorphism Theorems
- Normal Subgroups and Quotient Groups
- Polynomial Rings, the Division Algorithm and Roots
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Primitive Roots and Unit Groups Modulo N
- Quadratic Residues and the Legendre Symbol
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- The Fundamental Theorem of Finite Abelian Groups
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
Quadratic residues, roots, and the Legendre table modulo
Example
Modulo , the nonzero quadratic residues are , with root pairs
For representatives , the Legendre values are
Facts & Assumptions
Given: The odd prime modulus .
For an odd prime , exactly nonzero classes are quadratic residues, the same number are nonresidues, and every nonzero residue has exactly two square roots (An odd prime has nonzero quadratic residues and as many nonresidues).
The Legendre symbol is on a divisible numerator, on a quadratic residue, and on a quadratic nonresidue (The Legendre symbol, including its zero value).
Verification
Squaring modulo gives . Their negatives give the same squares, so the displayed pairs are roots of those five distinct classes; [L1] shows that this exhausts all nonzero residues and all roots.
The remaining nonzero classes are therefore nonresidues, while the zero class is in the separate divisible branch of [L2].
Assigning to the five residue classes, to the five nonresidue classes, and to the zero class by [L2] gives the displayed table.
Fourth and eighth powers modulo
Example
The nonzero fourth powers modulo are , and the nonzero eighth powers are . Each fourth-power target has four fourth roots, and each eighth-power target has eight eighth roots.
Facts & Assumptions
Given: The prime modulus and nonzero target classes.
If admits a primitive root, , , and , then is soluble exactly when (Euler's criterion: if has a primitive root, , and , then is solvable if and only if ).
Every prime admits a primitive root modulo that prime (Every prime modulus admits a primitive root).
For every prime , (, and for every prime ).
Under the hypotheses of [L1], a soluble congruence has exactly solution classes (If has a primitive root, , , and is solvable, then it has exactly solution classes modulo ).
If , then and are coprime (For a prime and any integer , is when and otherwise; so makes and coprime).
Verification
By [L2], admits a primitive root, [L3] gives , and [L5] supplies the coprimality of every nonzero target. Thus [L1] says that a target is a fourth power exactly when its fourth power is , and an eighth power exactly when its square is .
Direct reduction gives the fourth-power values , , , and . Squaring the unit classes shows that the targets satisfying are exactly . These lists agree with both directions of the tests in [L1].
Fact [L4] gives roots for each fourth-power target and roots for each eighth-power target.
Two quadratic nonresidues modulo can have a nonresidue product
Statement refuted
The product of two quadratic nonresidues modulo an integer need not be a quadratic residue. Modulo , the classes of and are nonresidues, and their product is also a nonresidue.
Facts & Assumptions
Given: The composite modulus .
A unit integer is a quadratic residue modulo exactly when it has a square root modulo , and otherwise it is a quadratic nonresidue (Quadratic residues and nonresidues modulo an integer).
The quadratic-residue classes are exactly the image of squaring on (Quadratic residuosity is representative-independent and the residues are the image of squaring).
A class is a unit exactly when (For , is a unit if and only if ).
Counterexample
By [L3], the units modulo are . Squaring them gives respectively , so [L2] identifies the square image as exactly .
The unit classes lie outside that image, so [L1] and [L2] make all three quadratic nonresidues modulo .
Yet , so the product of the two nonresidues and is the nonresidue .
The unique cube root of modulo is
Example
The congruence has the unique solution class .
Facts & Assumptions
Given: The prime , exponent , and target .
If is prime, , , and , then has one solution class; if , it is (A coprime exponent gives a unique nonzero -th root modulo a prime).
Verification
Since and , [L1] says that the unique cube-root class is .
Modulo , and , so ; directly, .
Euler's criterion computes by repeated squaring
Example
Let . Repeated squaring computes
and therefore .
For a checkable transcript, let and let be the accumulated product through bit of . The rows with bit leave the accumulator unchanged.
| bit | |||
|---|---|---|---|
| 0 | 1 | 3 | 3 |
| 1 | 1 | 9 | 27 |
| 2 | 1 | 81 | 2187 |
| 3 | 0 | 6561 | 2187 |
| 4 | 0 | 43046721 | 2187 |
| 5 | 0 | 311816404 | 2187 |
| 6 | 1 | 332055490 | 554374989 |
| 7 | 1 | 627697086 | 692682703 |
| 8 | 1 | 290411863 | 122079421 |
| 9 | 0 | 428546868 | 122079421 |
| 10 | 0 | 664373569 | 122079421 |
| 11 | 0 | 128724442 | 122079421 |
| 12 | 1 | 392778933 | 332499182 |
| 13 | 0 | 25099053 | 332499182 |
| 14 | 1 | 74866315 | 85056380 |
| 15 | 1 | 620616191 | 683996757 |
| 16 | 1 | 721181380 | 157844918 |
| 17 | 0 | 204089129 | 157844918 |
| 18 | 1 | 418766369 | 355227031 |
| 19 | 0 | 709737354 | 355227031 |
| 20 | 0 | 528168097 | 355227031 |
| 21 | 1 | 329748334 | 275223588 |
| 22 | 0 | 397327928 | 275223588 |
| 23 | 1 | 16921694 | 272602723 |
| 24 | 1 | 688270323 | 635018952 |
| 25 | 0 | 178932138 | 635018952 |
| 26 | 1 | 99664525 | 255823173 |
| 27 | 0 | 375528119 | 255823173 |
| 28 | 1 | 179529638 | 726377358 |
Facts & Assumptions
Given: The prime , the binary exponent , and the displayed repeated-squaring transcript.
Euler's criterion gives for every integer and odd prime (Euler's criterion: ).
Verification
Starting from , each table entry satisfies ; the bit column is the binary expansion , and multiplying precisely the with bit gives the displayed accumulators, ending at .
The final residue is , and it is not congruent to because .
Applying [L1] with and using step 2.1 gives .
The signed half-system for modulo gives
Example
For and , the signed half-system is
There are two negative signs, so Gauss's lemma gives .
Facts & Assumptions
Given: The odd prime , multiplier , and the half-system .
Multiplication by a unit modulo an odd prime reduces the half-system to unique signed representatives whose absolute values permute the half-system (Multiplication by with permutes an odd prime's signed half-system up to sign).
If counts the least positive residues of that exceed for , then (Gauss's quadratic-residue lemma).
Verification
The products reduce modulo to the signed representatives .
Their absolute values are , a permutation of as [L1] requires, and exactly two signs are negative.
Fact [L2] gives .
A nonmonic quadratic congruence solved through its discriminant
Example
The congruence
has exactly the two solution classes and .
Facts & Assumptions
Given: The polynomial modulo the odd prime .
If is odd and , then has exactly solution classes (The discriminant counts roots of for odd prime ).
For an odd prime , when and is a quadratic residue modulo , and when and is a quadratic nonresidue modulo (The Legendre symbol, including its zero value).
The quotient is a field (For every prime , the two operations on make it a field).
Verification
The discriminant is . Here and , so is a quadratic residue modulo and [L2] gives .
Since is odd and , fact [L1] applies and predicts exactly solution classes.
Completing the square gives , so ; by [L3] the field has no zero divisors, so or . Since , these yield and ; direct substitution gives and . Thus both predicted classes occur.
Squaring is not a homomorphism on a nonabelian group
Statement refuted
The squaring map need not be a group homomorphism. It fails on the nonabelian symmetric group .
Facts & Assumptions
Given: The permutations and of , composed from right to left.
The symmetric group on a set consists of its permutations under composition (The symmetric group : the bijections of a set under composition).
The symmetric group on every set is a group, and on a set with three distinct elements it is nonabelian ( is a group under composition, and it is non-abelian whenever has at least three distinct elements).
Natural powers in a group satisfy and (Powers : natural exponents in a monoid and integer exponents in a group, with ).
Group powers satisfy , and if then ; that last claim is false in general without its hypothesis, and the equation can fail already at (Exponent laws in a group: and for all , and when and commute).
A group homomorphism satisfies for all (Monoid homomorphism and group homomorphism).
Counterexample
By [L1] and [L2], , and their product is under the stated composition convention.
The two transpositions satisfy , while [L3] gives . Here , so and do not commute and the hypothesis of the power law in [L4] is not met; [L4] records that the equation can fail at in exactly that case.
Therefore , so violates the homomorphism identity [L5].
A soluble square congruence need not define a quadratic residue
Statement refuted
Solubility of does not by itself make a quadratic residue. For every odd prime , the target gives a soluble congruence but belongs to neither the residue nor the nonresidue class.
Facts & Assumptions
Given: An odd prime and the target .
For every integer and odd prime , has exactly solution classes ( has exactly solution classes).
The terms quadratic residue and quadratic nonresidue modulo are defined only for integers coprime to (Quadratic residues and nonresidues modulo an integer).
The Legendre symbol has value when its numerator is divisible by the odd prime denominator (The Legendre symbol, including its zero value).
Counterexample
Since by [L3], fact [L1] gives exactly one solution class to ; it is visibly the zero class.
Yet , so [L2] puts zero outside the quadratic residue and nonresidue dichotomy, and [L3] assigns it the separate Legendre value zero. Thus the congruence is soluble without making its target a quadratic residue.
Sources
Standard references
Recommended treatments; not extraction sources.
- W. Stein, Elementary Number Theory, Example 4.2.4
- A. Gorodnik, Number Theory, Lecture 9, Example 1.3
- H. Hackman, Elementary Number Theory, Chapter D, Section D.I
- N. Mascot, Legendre Symbols and Quadratic Reciprocity, Chapter 3
- W. Stein, Elementary Number Theory, Example 4.2.5
- H. Hackman, Elementary Number Theory, Chapter D, Section D.IV
- A. Gorodnik, Number Theory, Lecture 9, Section 1
- W. Stein, Elementary Number Theory, Section 4.1