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.
Divisibility and Greatest Common Divisors: Examples and Counterexamples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Relations, Functions, and Quotients
- 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
by the Euclidean algorithm, with the back-substitution giving
Example
The remainder descent of The Euclidean algorithm: for and the remainder descent from terminates, and the last nonzero remainder is from is
so the second coordinates are : the descent stops after three divisions, the last nonzero remainder is , and
Reading the divisions backwards gives Bézout coefficients:
that is, .
Numerals. For the symbol written inside means , where is the embedding of The naturals embed in the integers. Since is injective and preserves addition, multiplication and order, each numerical identity and inequality below is the image of the corresponding one in , checked there by the ordinary decimal arithmetic of .
Facts & Assumptions
Given: The integers , , , and , with numerals read as above through (The naturals embed in the integers, The integers as equivalence classes of pairs of naturals).
is a commutative ring, and its order is total, antisymmetric, transitive and compatible with addition (The integers form a commutative ring, Arithmetic on the integers, The integers form a totally ordered ring, Order on the integers).
For and there is exactly one pair with and (Division with remainder in : for and there are unique with and ).
The descent of The Euclidean algorithm: for and the remainder descent from terminates, and the last nonzero remainder is from with sends with to , where is the quotient of by ; it terminates at the least index with vanishing second coordinate, and the last nonzero remainder equals .
For the equation has an integer solution (Bézout's identity: for integers not both zero, is the least positive element of ; in particular has an integer solution), and the extended descent computes one (The extended Euclidean algorithm: the same descent produces integers with , so Bézout coefficients are computed and not merely shown to exist).
means for some (Divisibility in : when for some integer ).
Verification
The three divisions are correct and are the ones [L2] produces. First, and , with . Second, and , with . Third, and , with . In each line the remainder satisfies the constraint of [L2], so by the uniqueness there it is the remainder.
Applying [L3] to the three identities in turn gives .
Back-substitution. From the second division, ; from the first, . Substituting, .
, since . Hence .
The result checks numerically: , , and .
In the language of [L5], the descent from is , so the second coordinates are ; the least index with vanishing second coordinate is , the last nonzero remainder is , and it equals as [L5] asserts.
So , an explicit instance of [L6] with .
Finally and directly: and , so the value found is indeed a common divisor, as it must be.
Remarks
-
Three divisions, and the count is exact for this pair only. Nothing here, and nothing on the companion page, proves a bound on the number of divisions in terms of the size of the inputs.
-
The back-substitution is not a second algorithm. It is the same descent read in reverse, and The extended Euclidean algorithm: the same descent produces integers with , so Bézout coefficients are computed and not merely shown to exist performs it forwards, carrying the coefficient pairs alongside the remainders instead of recovering them afterwards.
-
The coefficients are not unique: as well, and Bézout coefficients are not unique: and , and for nonzero every solution has the form describes the whole family.
Bézout coefficients are not unique: and , and for nonzero every solution has the form
Example
Bézout's identity: for integers not both zero, is the least positive element of ; in particular has an integer solution asserts that has a solution; it does not assert that the solution is unique, and it is not. For and , where ( by the Euclidean algorithm, with the back-substitution giving ),
The general statement, for and both nonzero, is this. Put , and (If is nonzero then and are coprime), and let be any solution of . Then the solutions of that equation are exactly the pairs
For the pair above, , and , and carries to .
Numerals. For the symbol written inside means , the embedding of The naturals embed in the integers; every numerical identity below is the image of the corresponding identity in .
Facts & Assumptions
Given: Nonzero integers and , , and a solution of ; and, for the numerical part, , , .
is a commutative ring: addition and multiplication are associative and commutative, , , multiplication distributes over addition, and every has an additive inverse; we write for (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).
If then and for unique integers and , and (If is nonzero then and are coprime, Common divisor, and the greatest common divisor , with the convention , Coprime integers: ).
If and then (If and then ; and if , and then ).
means for some (Divisibility in : when for some integer ).
If and then ; and a product of nonzero integers is nonzero (The integers have no zero divisors; multiplicative cancellation).
Verification
Since and we have , so and in particular ; fix with , and . Both and are nonzero, since and .
Every pair of the stated form is a solution: for , .
Conversely, let satisfy . Subtracting gives , that is ; cancelling gives .
The numerical instance. Here by [L8], and , , so and . The pair is a solution, since .
Hence , and , so by [L5]: write for some .
Substituting into step 2.2, ; cancelling gives , that is . So .
With step 2.1 this shows the solutions are exactly the pairs , .
Taking in step 5.1 gives , and directly . So the same equation has at least the two solutions and , and they are distinct because .
Remarks
-
The family is infinite. Distinct values of give distinct pairs, since and forces by cancellation. So a Bézout equation with both nonzero never has a unique solution.
-
Why the statement is restricted to both nonzero. With and the quotient is and the family collapses to , which is still the complete solution set but for a different reason: is then forced and is free. The uniform statement above is the one used elsewhere, and the degenerate case is recorded here so that its absence from the claim is deliberate rather than an oversight.
at the boundary: , , and the convention is exactly what makes true at
Example
The two boundary values of are
the first by is symmetric and unchanged by signs: ; moreover , , , and unless and the second by the convention fixed in Common divisor, and the greatest common divisor , with the convention . The point of this example is that the second is not free: instantiating the scaling identity of for all integers , the identity holding at and at as well at gives
so is the only value the identity permits. The same conclusion follows from the identity taken at with : it reads , and an integer with is .
Facts & Assumptions
Given: Integers .
is a commutative ring: , , , multiplication distributes over addition, and every has an additive inverse (The integers form a commutative ring, Arithmetic on the integers).
by the convention of Common divisor, and the greatest common divisor , with the convention , and always.
Every integer divides (Divisibility in : when for some integer ), and every common divisor of and divides (Every common divisor of and divides ; consequently exactly when , , , and every common divisor of and divides — a characterisation that holds at as well).
The embedding has image exactly the nonnegative integers, and , since preserves addition (The naturals embed in the integers, The integers as equivalence classes of pairs of naturals).
Verification
for every , by [L3]; at this reads , agreeing with the convention.
Instantiate [L5] at : . The left side is and the right side is , so .
Instantiate [L5] at and : writing , it reads .
An integer satisfying is : adding to both sides gives . Combined with step 1.3, and with because is nonnegative, this is a second derivation of .
So the value is not chosen but determined, once the scaling identity is required to hold at every triple: steps 1.2 and 2.1 each force it, and step 1.1 shows it agrees with read at .
The divisibility reading agrees as well: every integer divides , so every common divisor of divides , and is a common divisor of that is nonnegative — which is exactly the characterisation of in [L7], returning the value .
Remarks
-
What goes wrong without a convention is not that some identity becomes awkward but that names nothing at all: the common divisors of are all of and have no greatest element (The common divisors of are all of and have no greatest element in the order of , so cannot be defined as a maximum and is fixed by convention).
-
is where the absolute value earns its place. Without it the natural guess would be negative for negative , and would fail to be nonnegative.
has an integer solution exactly when : is solvable and is not
Example
For integers , the equation
has a solution if and only if (Common divisor, and the greatest common divisor , with the convention , Divisibility in : when for some integer ).
With and , where :
- is solvable, since ; explicitly ;
- has no solution, since : dividing, with remainder .
Numerals. For the symbol inside means , the embedding of The naturals embed in the integers; the numerical identities below are the images of the corresponding identities in .
Facts & Assumptions
Given: Integers , and .
is a commutative ring: addition and multiplication are associative and commutative, , , , multiplication distributes over addition, and every has an additive inverse (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).
The order on is total, antisymmetric and transitive (The integers form a totally ordered ring, Order on the integers).
is a common divisor of and , , and (Common divisor, and the greatest common divisor , with the convention ).
exactly when , , and every common divisor of and divides (Every common divisor of and divides ; consequently exactly when , , , and every common divisor of and divides — a characterisation that holds at as well).
means for some ; only for (Divisibility in : when for some integer ).
For and there is exactly one pair with and , and holds exactly when (Division with remainder in : for and there are unique with and ).
Verification
If has a solution, then and give by [L6].
Conversely suppose , say . If , take with and multiply by : , a solution.
If instead then , so forces , and is a solution. The two cases are exhaustive.
. Indeed ; and , so and ; and , so every common divisor of and divides by [L6]. By [L5] this is exactly the characterisation of .
So solvability of is equivalent to .
, since ; so is solvable by step 2.1, and exhibits a solution.
: since , [L8] applies, and with is the unique such representation, so the remainder is and does not divide . Hence has no integer solution by step 2.1.
Remarks
-
The criterion is decidable by the Euclidean algorithm: compute by The Euclidean algorithm: for and the remainder descent from terminates, and the last nonzero remainder is , test whether it divides by division with remainder, and, when it does, obtain a solution by scaling the Bézout pair that The extended Euclidean algorithm: the same descent produces integers with , so Bézout coefficients are computed and not merely shown to exist computes.
-
Solutions are never unique when and are both nonzero; the family is described in Bézout coefficients are not unique: and , and for nonzero every solution has the form , and scaling that description by describes the solutions of .
-
The unsolvable case is genuinely unsolvable, not merely hard. Every value of is a multiple of , and is not one; no search is involved.
and , the arithmetic of and read off the subgroups of
Example
Take and . Then and , and and ; equivalently, in the subgroup generated by is and turns these two numbers into two statements about subgroups of :
The first says that the integers expressible as are exactly the multiples of ; the smallest positive one is . The second says that the integers divisible by both and are exactly the multiples of . The product check is .
Numerals. For the symbol inside means , the embedding of The naturals embed in the integers.
Facts & Assumptions
Given: The integers , , , and , and .
is a commutative ring: multiplication is associative and commutative, , , and multiplication distributes over addition (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).
exactly when , , and every common divisor of and divides (Every common divisor of and divides ; consequently exactly when , , , and every common divisor of and divides — a characterisation that holds at as well, Common divisor, and the greatest common divisor , with the convention ).
If and then for all (Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ); means for some (Divisibility in : when for some integer ).
, and every common multiple of and is a multiple of (Every common multiple of and is a multiple of , and , Common multiple, and the least common multiple , taken to be when or ).
and , and these are subgroups of ( and ; equivalently, in the subgroup generated by is and , Subgroup, Group and abelian group, The subgroup generated by a subset, the cyclic subgroup , and cyclic groups).
Every subgroup of has exactly one nonnegative generator (Every subgroup of is for exactly one natural number ).
Verification
. Indeed ; and , so and ; and , so every common divisor of and divides by [L3]. By [L2] this characterises .
. By [L4], ; with step 1.1 this reads . Since and , cancellation gives .
Applying [L7] with and : and .
Both right-hand sides are written with their canonical generator: and , and by [L8] no other nonnegative integer generates the same subgroup, so the two identities pin the subgroups down rather than merely exhibiting one description of each.
The two statements read concretely: an integer is of the form exactly when it is a multiple of — with the smallest positive such value — and an integer is divisible by both and exactly when it is a multiple of , which is the divisibility clause of [L4] instantiated here.
Remarks
-
The example is the seam in miniature. On the left of each identity is a construction in the group — a sum of subgroups, an intersection of subgroups — and on the right is a number computed by arithmetic. and ; equivalently, in the subgroup generated by is and is what makes the two sides the same object.
-
, so is visibly a common multiple; what is not visible without the theorem is that every common multiple is a multiple of it, which is why is exactly and not merely contains it.
Consecutive Fibonacci numbers are coprime, and for every the Euclidean algorithm on takes exactly divisions, with quotient in the first of them and quotient in the last
Example
The sequence. Write for and for (Addition of natural numbers). By the recursion theorem (The recursion theorem) applied to the set , the element and the function , there is exactly one with and whenever . Define to be the first coordinate of . Then for every , so
and the sequence begins . The indexing starts at , and the statements below depend on that choice.
Coprimality. For every ,
so consecutive Fibonacci numbers are coprime (Coprime integers: ).
The division count. For let be the remainder descent of The Euclidean algorithm: for and the remainder descent from terminates, and the last nonzero remainder is from , which is legitimate because , and for below the terminating index let be the quotient used at step , so that with . Then
Equivalently, on with the algorithm performs exactly divisions. At the pair is , there is a single division , and the list of quotients equal to is empty.
What is not claimed. Nothing here says these pairs are the worst case for their size; that is Lamé's theorem, and no bound on the number of divisions in terms of the size of the inputs is available at this point in the reading order.
Facts & Assumptions
Given: The sequence described above, with , and .
is a commutative ring; its order is total, antisymmetric and transitive and is compatible with addition; positives are closed under multiplication; means together with (The integers form a commutative ring, Arithmetic on the integers, The integers form a totally ordered ring, Order on the integers, The integers as equivalence classes of pairs of naturals).
For a set , an and there is exactly one with and (The recursion theorem).
is injective, preserves order, and has image the nonnegative integers (The naturals embed in the integers); hence in implies , since with , so by the discreteness of [L2] and order preservation gives (Discreteness: is the immediate successor).
For and there is exactly one pair with and (Division with remainder in : for and there are unique with and ).
The descent of The Euclidean algorithm: for and the remainder descent from terminates, and the last nonzero remainder is from with satisfies and whenever , with the quotient of by ; it is the unique such sequence, and is the least index with .
and are coprime exactly when (Coprime integers: ).
Verification
for every , by induction: it holds at since , and if then , whose first coordinate is , so the second is by definition of as the first coordinate one step later. Hence .
Induction hypothesis: fix and assume that the descent from terminates at index with quotients for and .
For every : and . By induction, at this is and ; and if it holds at then and , using compatibility of the order with addition.
Coprimality. By induction on : at , by [L7]. If , then and [L6] give . So for every , and consecutive Fibonacci numbers are coprime.
Base case of the division count, . Here and , so the descent starts at with . Dividing, with forces , since would give by [L4]; hence and . So , the single quotient is , and there is no index .
For every : , and . The first two are step 2.1; and with gives .
Inductive step. Consider the descent from ; it is legitimate since by step 3.1. Its first division is , and by step 3.1, so by the uniqueness in [L5] the quotient is and .
The shifted sequence starts at and obeys the same recursion as , hence, by the uniqueness in [L3], equals the descent from . Therefore its terminating index is by step 1.2, so terminates at index ; and its quotients are followed by the quotients of step 1.2, that is repeated times and then . This is the claim at .
By induction the division count holds for every : the descent from takes exactly divisions, with quotient in the first and quotient in the last; together with step 2.2 this is the whole example.
Remarks
-
The last quotient is , not , and the reason is the repeated value . The chain of quotient- divisions is a valid division only while , which fails exactly at . The descent therefore ends at the pair with the single division . A statement of the form "quotient at every step" is false for that reason, and the count would also be wrong at the first index if the sequence were indexed from .
-
Coprimality does not need the division count, and the count does not need coprimality; they are recorded together because both are read off the same identity , once through If then and have exactly the same common divisors, so and once through Division with remainder in : for and there are unique with and .
-
No worst-case claim. Lamé's theorem — that the Fibonacci pairs minimise the size of the inputs for a given number of divisions — is a genuinely different statement, and nothing above establishes or assumes it.
while and : dividing a product does not force dividing a factor, and the coprimality hypothesis is what fails
Statement refuted
Refuted claim: for all integers , if then or (Divisibility in : when for some integer ).
Witness: , , . Here , so ; but and have nonzero remainders, so and .
The true statement in this direction carries a coprimality hypothesis (If and then ; and if , and then ): if and then . That hypothesis is exactly what fails here, in both readings: and , and neither is .
Numerals. For the symbol inside means , the embedding of The naturals embed in the integers.
Facts & Assumptions
Given: The integers , , and .
is a commutative ring: multiplication is associative and commutative, , , , and multiplication distributes over addition (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).
The order on is total, antisymmetric and transitive (The integers form a totally ordered ring, Order on the integers).
means for some (Divisibility in : when for some integer ).
For and there is exactly one pair with and , and holds exactly when (Division with remainder in : for and there are unique with and ).
exactly when , , , and every common divisor of and divides (Every common divisor of and divides ; consequently exactly when , , , and every common divisor of and divides — a characterisation that holds at as well, Common divisor, and the greatest common divisor , with the convention ).
If and then (If and then ; and if , and then ); and are coprime exactly when (Coprime integers: ).
is injective and preserves order, and , in (The naturals embed in the integers).
Counterexample
and , so .
: since , [L4] applies, and with is the unique representation of that form, so the remainder is .
: likewise with , so the remainder is .
: indeed , and , so is a common divisor; and , so every common divisor of and divides by [L6]. By [L5], , and by [L8].
: indeed , and ; and , so every common divisor divides by [L6]. By [L5], , and by [L8].
Steps 1.1, 1.2 and 1.3 exhibit , , with , and : the claim is refuted.
So [L7] is not contradicted: applied with it would need or , and by steps 1.4 and 1.5 neither holds. The failure of the refuted claim is exactly the failure of coprimality, not a failure of the lemma.
Remarks
-
This is the gap that primality closes. When is prime its only positive divisors are and itself, so for every that does not divide, and the refuted claim becomes true. Primes are not defined on this page, and the statement above is not repaired here; it is recorded so that the coprimality hypothesis of If and then ; and if , and then is visibly doing work rather than decorating the statement.
-
The witness is minimal in spirit, not proved minimal. No claim is made that is the smallest such triple.
The common divisors of are all of and have no greatest element in the order of , so cannot be defined as a maximum and is fixed by convention
Statement refuted
Refuted claim: for every pair of integers the set
of common divisors has a greatest element, so that can be defined as that maximum at every pair (Divisibility in : when for some integer , Common divisor, and the greatest common divisor , with the convention ).
Witness: . Every integer divides , so ; and has no greatest element, since for every . So there is no maximum to take, and is fixed by the convention of Common divisor, and the greatest common divisor , with the convention rather than computed.
This does not contradict A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element: that lemma requires the set to be bounded above, and is not.
Facts & Assumptions
Given: The set of common divisors of and .
is a commutative ring: , , , , and every has an additive inverse (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).
The order on is total, antisymmetric and transitive and is compatible with addition; positives are closed under multiplication; means together with (The integers form a totally ordered ring, Order on the integers).
means for some ; in particular for every , since (Divisibility in : when for some integer ).
A nonempty set of integers bounded above has a greatest element (A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element).
is injective with image the nonnegative integers, and , (The naturals embed in the integers).
exactly when , , , and every common divisor of and divides (Every common divisor of and divides ; consequently exactly when , , , and every common divisor of and divides — a characterisation that holds at as well).
Counterexample
: every integer satisfies , so every integer is a common divisor of and .
: lies in the image of , hence ; and because is injective and in .
For every , : adding to gives , and would give after adding , contrary to step 1.2.
has no greatest element: if were one, then would give , while by step 2.1, contradicting antisymmetry.
[L4] is not contradicted, since its hypothesis fails: is not bounded above, because for any candidate bound the integer exceeds it by step 2.1.
By steps 1.1 and 3.1 the set has no greatest element, so the refuted claim fails at and no maximum defines .
What survives at is the divisibility characterisation [L6]: , , and every common divisor of divides by [L3], so is the value that characterisation returns — which is exactly the convention adopted in Common divisor, and the greatest common divisor , with the convention .
Remarks
-
The failure is only at . For every other pair one of the two arguments is nonzero, and then the common divisors are bounded above by its absolute value (If and then and ; hence the set of divisors of a nonzero integer is bounded above by ), so A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element applies and the maximum exists.
-
The convention is not a patch over an inconvenience but over an absence. There is no integer that could serve as "the greatest common divisor of and " in the order of , so a value has to be supplied; that it is is forced by the identities is required to satisfy ( at the boundary: , , and the convention is exactly what makes true at ).
FALSE: For all integers and ,
Statement
False claim: for all integers and ,
(Common divisor, and the greatest common divisor , with the convention , Common multiple, and the least common multiple , taken to be when or ).
The true statement is Every common multiple of and is a multiple of , and , with an absolute value on the right: . The two differ as soon as is negative, and is a witness: there and , so the left side is , while .
Numerals. For the symbol inside means , the embedding of The naturals embed in the integers.
Facts & Assumptions
Given: The integers , and .
is a commutative ring: multiplication is associative and commutative, , , multiplication distributes over addition, and every has an additive inverse (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).
The order on is total, antisymmetric and transitive and is compatible with addition (The integers form a totally ordered ring, Order on the integers).
exactly when , , , and every common divisor of and divides (Every common divisor of and divides ; consequently exactly when , , , and every common divisor of and divides — a characterisation that holds at as well).
If and then for all ; and for every (Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and , Divisibility in : when for some integer ).
is injective with image the nonnegative integers, and preserves addition and multiplication (The naturals embed in the integers).
The refuted claim: for all integers .
Refutation
. Indeed , and and by [L5]; and , so every common divisor of and divides by [L5]. By [L4] this characterises .
, and since and .
: otherwise , that is , whence in , contradicting injectivity of .
By [L3], ; with step 1.1 this reads , so by cancellation of the nonzero factor .
Therefore , while , and these differ: [L9] is false at .
Remarks
-
Every pair with refutes it, not just this one: and are both nonnegative by construction (Common divisor, and the greatest common divisor , with the convention , Common multiple, and the least common multiple , taken to be when or ), so their product is nonnegative, while is negative. The witness above is simply a small instance.
-
The claim is true when and are both nonnegative, which is why it is a natural slip: in that case and the two statements coincide. Every common multiple of and is a multiple of , and is the version that holds for all integers.
-
The absolute value is not the only convention doing work. At the true identity reads , which holds only because was fixed in Common multiple, and the least common multiple , taken to be when or .
Sources
Standard references
Recommended treatments; not extraction sources.