Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-07-31
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.

For n≥1, ax≡b(modn) is solvable exactly when gcd⁡(a,n)∣b, and then has exactly gcd⁡(a,n) solution classes modulo n

Statement

Let a,b∈Z and n≥1, and put d:=gcd⁡(a,n). The congruence

ax≡b(modn)

has an integer solution if and only if d∣b. When it is solvable, it has exactly d solution classes in Z/n. More explicitly, if a=da′, n=dn′, b=db′ and x0 solves a′x0≡b′(modn′), the solutions modulo n are

[x0+jn′]n(0≤j<d).

Facts & Assumptions

Given: Integers a,b, a positive integer n, and d:=gcd⁡(a,n).

[L2]

If d∣b, the original congruence is equivalent to a′x≡b′(modn′), where a=da′, n=dn′, b=db′, n′>0, and a′,n′ are coprime (If n≥1, d=gcd⁡(a,n) and d∣b, then ax≡b(modn) reduces to a congruence with coprime coefficient modulo n/d).

[L4]

Every class modulo a positive integer c has a unique representative r with 0≤r<c, and the quotient has cardinality c (For n≥1, every class in Z/n has one representative r with 0≤r<n, so ∣Z/n∣=n; while Z/0 is in bijection with Z, The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1

If x solves the congruence, then n∣ax−b, so ax−b=nq for some q and b=ax−nq. Since d∣a and d∣n, it follows that d∣b.

L1
1.2

Conversely suppose d∣b and use the notation of [L2]. Choose u,v with ua′+vn′=1 by [L3]. Then x0:=ub′ satisfies a′x0−b′=b′(ua′−1)=−b′vn′, so it solves the reduced congruence and hence the original one.

L2L3
1.3

By [L4], every integer q has a unique residue j with 0≤j<d modulo d. Thus every integer congruent to x0 modulo n′ is congruent modulo dn′=n to exactly one x0+jn′ with 0≤j<d.

L4
2.1

Every solution x of the reduced congruence is congruent to x0 modulo n′. Indeed, n′∣a′(x−x0); multiplying ua′+vn′=1 by x−x0 shows that n′ divides x−x0. Conversely every x≡x0(modn′) solves the reduced congruence.

step 1.2L2L3
2.2

If 0≤i,j<d and [x0+in′]n=[x0+jn′]n, then dn′∣(i−j)n′, so cancellation gives d∣i−j; uniqueness of the standard representatives modulo d yields i=j. Hence the displayed d classes are distinct.

step 1.3L4
3.1

Steps 1.1 and 1.2 prove the solvability criterion. When it holds, steps 2.1, 1.3 and 2.2 show that the displayed list is exhaustive and contains exactly d distinct solution classes.

step 1.1step 1.2step 2.1step 1.3step 2.2∎

Depends on

Used by

Dependency tree · two levels

34 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