Exercise · ZW-EUCLIDEAN-ALGORITHM-006 · ★★☆ Intermediate
Compute \(\gcd(391,221)\).
Choose one option.
Show answer
- C. 17
Exercise · ZW-EUCLIDEAN-ALGORITHM-006 · ★★☆ Intermediate
Choose one option.
\(391=1\cdot221+170\), \(221=1\cdot170+51\), \(170=3\cdot51+17\), \(51=3\cdot17+0\). The result is 17.
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.