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

Explanation

Three: \(1071=2\cdot462+147\), \(462=3\cdot147+21\) and \(147=7\cdot21+0\).

Study Discrete mathematics in ZWMath →

Review the concept: Euclidean algorithm

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.

\[\gcd(a,b)=\gcd(b,\,a\bmod b)\]

More practice problems: euclidean algorithm

← ZW-EUCLIDEAN-ALGORITHM-004 ZW-EUCLIDEAN-ALGORITHM-006 →