Exercise · ZW-EUCLIDEAN-ALGORITHM-009 · ★★★ Advanced
Why does the Euclidean algorithm always terminate?
Choose one option.
Show answer
- C. The remainders form a strictly decreasing sequence of nonnegative integers
Exercise · ZW-EUCLIDEAN-ALGORITHM-009 · ★★★ Advanced
Choose one option.
The remainders are nonnegative integers and each is smaller than the previous divisor; a strictly decreasing sequence of nonnegative integers is finite.
The Euclidean algorithm computes the greatest common divisor of two integers \(a\) and \(b\) by dividing repeatedly, replacing each pair by the divisor and the remainder, until the remainder is 0.