2.5.9 · D5Number Theory (Intermediate)

Question bank — Bézout's identity

1,687 words8 min readBack to topic

Before we start, one reminder that everything below leans on. When we write we mean: pick two integer "weights" and , scale by and by , and add. The weights may be negative (that's subtraction) or zero. The set of all such totals is what Bézout's proof studies. Keep that picture in mind — most traps here are people forgetting that roam over all integers, positive and negative.

The single most important picture for this whole bank is below: every integer combination lands on an evenly-spaced grid of dots, and the spacing of that grid is the GCD. Nothing between the dots is reachable.

Look at the red dots on the number line: they sit exactly apart, starting at . The smallest positive dot is the GCD itself. This one image justifies "every combination is a multiple of the GCD" and "the GCD is the smallest positive combination" at the same time — refer back to it whenever a trap talks about what is or isn't reachable.

True or false — justify

Every integer of the form (for integers ) is a multiple of .
True. Let ; then and , so write and . Then , a multiple of . Geometrically (see the grid figure) you can only ever land on the red dots spaced apart, never between them.
The equation has integer solutions for any integers .
False. The reachable dots are spaced apart, so is only hit when that spacing is exactly , i.e. when and are coprime. If the nearest positive dot to is , and falls in the gap — unreachable.
If , then is the only pair that works.
False, and here's why it must fail. Suppose . Add zero cleverly: . So bumping up by while dropping by changes the total by exactly . Do this times for any integer and you get infinitely many valid pairs . The figure below shows these solutions marching along a straight line.
Bézout's identity guarantees you can write as with both and positive.
False. If and both weights were , the total would be at least (or ), but the GCD is usually smaller than both — so you must subtract one term, forcing a negative weight. Same-sign inputs almost always give one positive and one negative coefficient.
is solvable, but is not.
True. The reachable values are exactly the multiples of . So (which is ) sits on a red dot, while lands in the gap between and — off the grid, hence unsolvable.
If for some integers , then .
False. Reaching only tells you is a multiple of , i.e. , so the GCD is or . Bézout says the GCD is the smallest positive combination — not that every combination equals the GCD. Example: yet .
For coprime , the solution to gives the modular inverse of mod .
True. Take and reduce everything modulo ; the term is a multiple of so it vanishes, leaving . That is precisely the statement " is the multiplicative inverse of mod ."
Bézout's identity requires running the Extended Euclidean Algorithm to be true.
False. Existence is proved abstractly: the set of positive combinations is non-empty, so by the Well-Ordering Principle it has a least element, and that least element is shown to be the GCD. The algorithm only constructs explicit — the truth of the identity does not depend on any computation.

Spot the error

", and , so the Bézout coefficients are and ."
The total is , not the GCD ; it equals . A correct pair is . The error is checking against the wrong right-hand side — Bézout demands the combination equal , not a larger multiple.
"Since is non-empty and its smallest element is , and , we're done — must be the GCD."
Incomplete: showing is a common divisor isn't enough; you must also show it's the greatest. Let be any common divisor, so and for integers . Then , which shows . Every common divisor divides , so is the greatest.
": the smallest positive combination is , so Bézout still applies."
Every combination of and is , so the set of positive combinations is empty — no smallest element exists. Bézout explicitly excludes "both zero"; is undefined here.
"In the proof, with ; if then and contradicts minimality, so ."
Wrong conclusion. The Division Algorithm forces , so the contradiction rules out , leaving (giving ). can never be negative.
"To get all solutions of , shift by multiples of and : , ."
You must divide by the GCD: the correct shift is , . Using and directly overshoots and skips valid solutions whenever (see the solution-line figure).
", and is negative, so this can't be a valid Bézout pair."
Negative coefficients are perfectly valid — a "combination" allows subtraction. , so is a genuine Bézout pair.

Why questions

Why is the smallest positive combination the GCD, rather than the largest or some middle value?
The largest is unbounded (scale up forever). The smallest positive one is special because the Division Algorithm forces it to divide both and — anything smaller would be a positive remainder still in the set, contradicting minimality.
Why does Bézout give an "if and only if" test for linear Diophantine solvability?
Every combination is a multiple of (necessity), and multiplying the Bézout relation by builds a solution whenever (sufficiency) — both directions close the gap.
Why must at least one Bézout coefficient be negative when and ?
With both coefficients the total is (or zero), but the GCD is strictly smaller, so you can only reach it by subtracting — forcing a negative weight.
Why does the Euclidean Algorithm naturally produce Bézout coefficients when run in reverse?
Each remainder equals a combination of the previous two numbers; back-substituting chains these until the GCD is written purely in terms of the original and — the algorithm literally records the linear combination at every step.
Why is coprimality equivalent to " is solvable"?
If , Bézout directly gives . Conversely, any common divisor of divides , forcing it to be — so no common factor above can exist.
Why does the general-solution shift leave unchanged?
The added terms and are equal in magnitude () and opposite in sign, so they cancel exactly — the total is untouched for every .

Edge cases

What are the Bézout coefficients when (and )?
, and works for any — so with any is a solution; the non-uniqueness is especially visible here.
Does Bézout's identity hold for negative inputs like ?
Yes. is defined via absolute values (), and e.g. ; signs of just get absorbed into the choice of coefficients.
If , what does Bézout give?
, reachable as (for ). The two "directions" collapse onto one, but the identity still holds trivially.
For coprime , is the only positive value smaller than both that's reachable?
is the smallest positive reachable value, and since it divides everything, all positive integers become reachable — coprimality makes the whole positive number line accessible as combinations.
Can ever be reached with ?
Only if , which requires — a case Bézout excludes. For valid inputs the GCD is positive, so the zero pair gives .
Recall One-line summary + the picture to carry away

Bézout says is the smallest positive thing you can build from and with signed integer weights; every combination is a multiple of it, coefficients are non-unique and often negative, and the "both zero" case is the sole exception. The schematic below is the whole idea in one frame: a number line whose reachable dots are spaced apart, first positive dot circled as the GCD, gaps between dots forever unreachable.