Exercise · ZW-EUCLIDEAN-ALGORITHM-004 · ★☆☆ Basic
Compute \(\gcd(1071,462)\).
Choose one option.
Show answer
- D. 21
Exercise · ZW-EUCLIDEAN-ALGORITHM-004 · ★☆☆ Basic
Choose one option.
\(1071=2\cdot462+147\), \(462=3\cdot147+21\), \(147=7\cdot21+0\). The greatest common divisor is 21.
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.