Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck 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 n1n\ge1, axb(modn)ax\equiv b\pmod n is solvable exactly when gcd(a,n)b\gcd(a,n)\mid b, and then has exactly gcd(a,n)\gcd(a,n) solution classes modulo nn

Statement

Let a,bZa,b\in\mathbb Z and n1n\ge1, and put d:=gcd(a,n)d:=\gcd(a,n). The congruence

axb(modn)ax\equiv b\pmod n

has an integer solution if and only if dbd\mid b. When it is solvable, it has exactly dd solution classes in Z/n\mathbb Z/n. More explicitly, if a=daa=da', n=dnn=dn', b=dbb=db' and x0x_0 solves ax0b(modn)a'x_0\equiv b'\pmod{n'}, the solutions modulo nn are

[x0+jn]n(0j<d).[x_0+jn']_n\qquad(0\le j<d).

Facts & Assumptions

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

[L2]

If dbd\mid b, the original congruence is equivalent to axb(modn)a'x\equiv b'\pmod{n'}, where a=daa=da', n=dnn=dn', b=dbb=db', n>0n'>0, and a,na',n' are coprime (If n1n\ge1, d=gcd(a,n)d=\gcd(a,n) and dbd\mid b, then axb(modn)ax\equiv b\pmod n reduces to a congruence with coprime coefficient modulo n/dn/d).

Proof

technique · direct
1.1

If xx solves the congruence, then naxbn\mid ax-b, so axb=nqax-b=nq for some qq and b=axnqb=ax-nq. Since dad\mid a and dnd\mid n, it follows that dbd\mid b.

L1
1.2

Conversely suppose dbd\mid b and use the notation of [L2]. Choose u,vu,v with ua+vn=1ua'+vn'=1 by [L3]. Then x0:=ubx_0:=ub' satisfies ax0b=b(ua1)=bvna'x_0-b'=b'(ua'-1)=-b'vn', so it solves the reduced congruence and hence the original one.

L2L3
1.3

By [L4], every integer qq has a unique residue jj with 0j<d0\le j<d modulo dd. Thus every integer congruent to x0x_0 modulo nn' is congruent modulo dn=ndn'=n to exactly one x0+jnx_0+jn' with 0j<d0\le j<d.

L4
2.1

Every solution xx of the reduced congruence is congruent to x0x_0 modulo nn'. Indeed, na(xx0)n'\mid a'(x-x_0); multiplying ua+vn=1ua'+vn'=1 by xx0x-x_0 shows that nn' divides xx0x-x_0. Conversely every xx0(modn)x\equiv x_0\pmod{n'} solves the reduced congruence.

step 1.2L2L3
2.2

If 0i,j<d0\le i,j<d and [x0+in]n=[x0+jn]n[x_0+in']_n=[x_0+jn']_n, then dn(ij)ndn'\mid(i-j)n', so cancellation gives dijd\mid i-j; uniqueness of the standard representatives modulo dd yields i=ji=j. Hence the displayed dd 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 dd distinct solution classes.

step 1.1step 1.2step 2.1step 1.3step 2.2

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 75 results over 20 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