[summary: Bézout's theorem states that if and are integers, and is an integer, then the equation has integer solutions in and if and only if the Greatest common divisor of and divides .]
Bézout's theorem is an important basic theorem of number theory. It states that if and are integers, and is an integer, then the equation has integer solutions in and if and only if the Greatest common divisor of and divides .
Proof
We have two directions of the equivalence to prove.
If has solutions
Suppose has solutions in and . Then the highest common factor of and divides and , so it divides and ; hence it divides their sum, and hence .
If the highest common factor divides
Suppose ; equivalently, there is some such that .
We have the following fact: that the highest common factor is a linear combination of . ([hcf_is_linear_combination Proof]; this [extended_euclidean_algorithm can also be seen] by working through [euclidean_algorithm Euclid's algorithm].)
Therefore there are and such that .
Finally, , as required.
Actually finding the solutions
Suppose , as above.
The [-extended_euclidean_algorithm] can be used (efficiently!) to obtain a linear combination of and which equals . Once we have found such a linear combination, the solutions to the integer equation follow quickly by just multiplying through by .
Importance
Bézout's theorem is important as a step towards the proof of Euclid's lemma, which itself is the key behind the Fundamental Theorem of Arithmetic. It also holds in general principal ideal domains.