Exercise 916Number theory › Divisibility and gcdHigh schoolAdded 3 Nov 2026
Proof of the Euclidean algorithm
#Euclidean algorithm#gcd invariance#proof
Statement
Show that if , then .
Hint
Show that both pairs have the same set of common divisors.
Show solutionHide solution
Solution
Common divisors. If and , then . Conversely, if and , then .
Conclusion. Both pairs have the same common divisors, hence the same greatest one. The Euclidean algorithm terminates because remainders strictly decrease, and stops at the last nonzero remainder, which is the gcd.