Alphabeta Math
PropositionStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 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.

Quadratic residuosity is representative-independent and the residues are the image of squaring

Statement

Let n≥2. Whether an integer a with gcd⁡(a,n)=1 is a quadratic residue modulo n depends only on its class [a]n. Moreover, the quadratic-residue classes are exactly

{u2:u∈(Z/n)×},

the image of squaring on the unit group.

Facts & Assumptions

Given: An integer n≥2 and integers representing unit classes modulo n.

[L1]

For gcd⁡(a,n)=1, the integer a is a quadratic residue modulo n exactly when some integer x satisfies x2≡a(modn) (Quadratic residues and nonresidues modulo an integer).

[L2]

Two classes in Z/n are equal exactly when their representatives are congruent modulo n (The congruence class [a]n and the quotient set Z/n).

[L3]

The class [a]n is a unit exactly when gcd⁡(a,n)=1, and this condition depends only on the class (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

[L4]

A class u∈Z/n is a unit exactly when some v∈Z/n satisfies uv=[1]n (The unit group (Z/n)× and Euler's totient φ(n)=∣(Z/n)×∣ for n≥1).

Proof

technique · direct
1.1L1L2given

If a≡b(modn) and x2≡a(modn), then [x]n2=[a]n=[b]n, so x2≡b(modn); reversing the roles of a and b gives the converse.

2.1L3L4L5step 1.1

By [L3], congruent representatives are simultaneously units. If [x]n2=[a]n and [a]n is a unit with inverse v, then [x]n([x]nv)=[x]n2v=[1]n, so [x]n is a unit. Thus every quadratic-residue class lies in the image of squaring on (Z/n)×.

3.1L1L2L3L4L5step 1.1step 2.1∎

Conversely, let u=[x]n be a unit with u2=[a]n. By [L4] there is v with uv=[1]n, so u2v2=[1]n by [L5] and [a]n=u2 is itself a unit; [L3] then gives gcd⁡(a,n)=1, which is the hypothesis [L1] requires. Since [x]n2=[a]n, [L2] gives x2≡a(modn), so [L1] makes a a quadratic residue. Hence the quadratic-residue classes are exactly the displayed image.

Depends on

Used by

Dependency tree · two levels

24 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