Maths WorkshopMaths problems with full solutions
Exercise 456Number theory › Divisibility and gcdHigh schoolAdded 3 Nov 2026

GCD and divisibility

#gcd#divisibility#equivalence

Statement

Show that gcd⁡(a,b)=a\gcd(a,b)=a iff a∣ba\mid b.

Hint

gcd⁡(a,b)\gcd(a,b) divides aa, and equals aa iff aa also divides bb.

Show solutionHide solution

Solution

If gcd⁡(a,b)=a\gcd(a,b)=a. By definition of gcd, a=gcd⁡(a,b)∣ba=\gcd(a,b)\mid b.

If a∣ba\mid b. Then aa is a common divisor of aa and bb, and any common divisor divides aa, so gcd⁡(a,b)=a\gcd(a,b)=a.

Conclusion. gcd⁡(a,b)=a  ⟺  a∣b\gcd(a,b)=a\iff a\mid b.