Read · 2 min
Euclid's Lemma states that given a prime and integers , if , then or . Note that the "or" is inclusive, so it is also possible (but not guaranteed) that divides both and . Intuitively, this should make sense. If it doesn't, take a moment and play around with some numbers to gain some intuition.
One of the first things we might think of is prime factorization - given the prime factorization of two integers, if a certain prime appears in the product, then that prime should also appear in the prime factorization of at least one of the two integers. While this is great reasoning and definitely helps build intuition, this will not pass as a proof. One reason is that the idea of "prime factorization" depends on the Fundamental Theorem of Arithmetic, which in turn is proved using Euclid's Lemma, so we would be guilty of circular reasoning!
The typical proof, while it only uses very elementary techniques, is not obvious to someone who has not seen it before. We will need to use Bezout's Lemma (also known as Bezout's Identity), which is the following: For any nonzero integers , there exist integers such that . This can be easily shown by reversing the steps in the Euclidian Algorithm.
We are now ready to prove Euclid's Lemma. If , then we are done. Otherwise, , so by Bezout's Lemma, there exist integers such that . The next step is to multiply both sides by , so . Since obviously and by the hypothesis , then divides their sum, so , hence we are done. Notice that our motivation for multiplying by was so that we could create an term to which we could apply the hypothesis.
As an extension, consider what happens when we replace with any integer . We will have to adjust our statement slightly. When you are ready, see here.