Let be an integer. Show that 5 divides if and only if 5 divides .
We can slightly generalize Euclid's lemma:
Theorem 5 (Generalized Euclid's Lemma).
Let be a prime and be integers. If divides , then it divides one of .
Proof. We will prove this generalization by applying Euclid's lemma multiple times. If a prime divides , then by Euclid's lemma, divides either or . In the first case, we are done. In the second case, we apply Euclid's lemma again in the same manner. We then have that divides either or . In the first case, we are done; in the second case, we repeat the same reasoning. If we repeat this reasoning enough times, we will eventually be done.
## Remark 6.
This reasoning can be made more rigorous using induction.