Maths WorkshopMaths problems with full solutions
Exercise 1488Number theory › Divisibility and gcdL1Added 2 Nov 2026

A prime divisor property

#primes#divisibility#Euclid's lemma

Statement

Let pp be prime and a,ba,b integers. Show that if p∣abp\mid ab, then p∣ap\mid a or p∣bp\mid b.

Hint

If p∤ap\nmid a, then \divisibility(p,a)=1\divisibility(p,a)=1. Apply Gauss's lemma.

Show solutionHide solution

Solution

Case 1. If p∣ap\mid a, done.

Case 2. If p∤ap\nmid a, then since pp is prime, \divisibility(p,a)=1\divisibility(p,a)=1. By Gauss's lemma (if \divisibility(p,a)=1\divisibility(p,a)=1 and p∣abp\mid ab, then p∣bp\mid b), we get p∣bp\mid b.

Remark. This property characterizes prime numbers in Z\mathbb{Z} and is the key to unique factorization.