Mathwords logoMathwords

Euclid's Lemma — Definition & Example

Euclid's Lemma is the rule that a prime number cannot divide a product without dividing at least one of the factors. If a prime goes evenly into abab, it must go evenly into aa or into bb.

Let pp be a prime and let a,b∈Za, b \in \mathbb{Z}. If p∣abp \mid ab, then p∣ap \mid a or p∣bp \mid b. A standard proof uses Bézout's identity. If p∤ap \nmid a, then gcd⁡(p,a)=1\gcd(p, a) = 1, so px+ay=1px + ay = 1 for some integers x,yx, y. Multiplying by bb gives b=pbx+abyb = pbx + aby, and pp divides both terms on the right. A common generalization states that if n∣abn \mid ab and gcd⁡(n,a)=1\gcd(n, a) = 1, then n∣bn \mid b.

Key Formula

p prime, p∣ab  ⟹  p∣a  or  p∣bp \text{ prime},\ p \mid ab \implies p \mid a \ \text{ or } \ p \mid b
Where:
  • pp = A prime number
  • a,ba, b = Any integers
  • ∣\mid = "Divides": p∣ap \mid a means a=pka = pk for some integer kk

Worked Example

Problem: An integer kk satisfies 7∣15k7 \mid 15k. Use Euclid's Lemma to show that 7∣k7 \mid k. Then find the smallest positive value of kk.
Step 1: Check the hypothesis. The number 7 is prime, and it divides the product 15⋅k15 \cdot k, so Euclid's Lemma applies.
7∣15⋅k7 \mid 15 \cdot k
Step 2: Rule out the first factor. Dividing 15 by 7 leaves remainder 1, so 7 does not divide 15. By the lemma, 7 must divide the other factor.
15=7×2+1  ⟹  7∤15  ⟹  7∣k15 = 7 \times 2 + 1 \implies 7 \nmid 15 \implies 7 \mid k
Step 3: Every valid kk is a multiple of 7, so the smallest positive choice is k=7k = 7. Check this value directly.
15×7=105,105÷7=1515 \times 7 = 105, \qquad 105 \div 7 = 15
Answer: Euclid's Lemma forces 7∣k7 \mid k. The smallest positive value is k=7k = 7, which gives 15k=10515k = 105, a multiple of 7.

Why It Matters

Euclid's Lemma is the key step in proving that prime factorizations are unique, which is the uniqueness half of the Fundamental Theorem of Arithmetic. In abstract algebra it is the reason Z/pZ\mathbb{Z}/p\mathbb{Z} has no zero divisors and forms a field. It also drives the classic proof that 2\sqrt{2} is irrational.

Common Mistakes

Mistake: Applying the lemma when the divisor is composite.
Correction: The conclusion can fail when the divisor is not prime. For example, 6∣4×9=366 \mid 4 \times 9 = 36, yet 6 divides neither 4 nor 9. With a composite divisor nn, you may only conclude n∣bn \mid b after you have shown gcd⁡(n,a)=1\gcd(n, a) = 1.

Related Terms