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 , is solvable exactly when , and then has exactly solution classes modulo
Statement
Let and , and put . The congruence
has an integer solution if and only if . When it is solvable, it has exactly solution classes in . More explicitly, if , , and solves , the solutions modulo are
Facts & Assumptions
Given: Integers , a positive integer , and .
The integer divides both and , and every common divisor of divides each integer linear combination of them (Common divisor, and the greatest common divisor , with the convention , Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ).
If , the original congruence is equivalent to , where , , , , and are coprime (If , and , then reduces to a congruence with coprime coefficient modulo ).
Every class modulo a positive integer has a unique representative with , and the quotient has cardinality (For , every class in has one representative with , so ; while is in bijection with , The cardinality of a finite set).
Proof
If solves the congruence, then , so for some and . Since and , it follows that .
Conversely suppose and use the notation of [L2]. Choose with by [L3]. Then satisfies , so it solves the reduced congruence and hence the original one.
By [L4], every integer has a unique residue with modulo . Thus every integer congruent to modulo is congruent modulo to exactly one with .
Every solution of the reduced congruence is congruent to modulo . Indeed, ; multiplying by shows that divides . Conversely every solves the reduced congruence.
If and , then , so cancellation gives ; uniqueness of the standard representatives modulo yields . Hence the displayed classes are distinct.
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 distinct solution classes.
Depends on
- If $n\ge1$, $d=\gcd(a,n)$ and $d\mid b$, then $ax\equiv b\pmod n$ reduces to a congruence with coprime coefficient modulo $n/d$
- Bézout's identity: for integers $a, b$ not both zero, $\gcd(a,b)$ is the least positive element of $\{\, ax + by : x, y \in \mathbb{Z} \,\}$; in particular $ax + by = \gcd(a,b)$ has an integer solution
- $a$ and $b$ are coprime if and only if $ax + by = 1$ for some integers $x, y$; and in that case the only common divisors of $a$ and $b$ are $1$ and $-1$
- For $n\ge 1$, every class in $\mathbb{Z}/n$ has one representative $r$ with $0\le r<n$, so $\lvert\mathbb{Z}/n\rvert=n$; while $\mathbb{Z}/0$ is in bijection with $\mathbb{Z}$
- The cardinality $\lvert A\rvert$ of a finite set
- Divisibility is reflexive and transitive on $\mathbb{Z}$, and is linear: if $d \mid a$ and $d \mid b$ then $d \mid ax + by$ for all integers $x, y$; also $d \mid a$ implies $d \mid ac$, $-d \mid a$ and $d \mid -a$
- Common divisor, and the greatest common divisor $\gcd(a,b)$, with the convention $\gcd(0,0) := 0$
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
- Mathematics LibreTexts, Linear Congruences (standard reference, not scraped)