Exercise · ZW-EUCLIDEAN-ALGORITHM-005 · ★★☆ Intermediate
How many divisions (the last with remainder 0) does the Euclidean algorithm need for \(\gcd(1071,462)\)?
Choose one option.
Show answer
- B. 3
Exercise · ZW-EUCLIDEAN-ALGORITHM-005 · ★★☆ Intermediate
Choose one option.
Three: \(1071=2\cdot462+147\), \(462=3\cdot147+21\) and \(147=7\cdot21+0\).
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.