Exercise · ZW-EXTENDED-EUCLIDEAN-ALGORITHM-004 · ★★☆ Intermediate

In the step \(46=4\cdot 10+6\) of the division \(r_{k-2}=q_{k-1}r_{k-1}+r_k\), what is \(q_{k-1}\)?

Choose one option.

Show answer
  • A. 4

Explanation

With \(r_{k-2}=46\) and \(r_{k-1}=10\), the quotient \(q_{k-1}=4\) multiplies the divisor 10. The remainder 6 is \(r_k\), not the quotient.

Study Elementary number theory in ZWMath →

Review the concept: Extended Euclidean algorithm

The extended Euclidean algorithm computes \(d=\gcd(a,b)\) and integers \(x\), \(y\) such that \(ax+by=d\). It is the Euclidean algorithm that also tracks the Bézout coefficients.

\[r_k=r_{k-2}-q_{k-1}r_{k-1}\\s_k=s_{k-2}-q_{k-1}s_{k-1}\\t_k=t_{k-2}-q_{k-1}t_{k-1}\]

More practice problems: extended euclidean algorithm

← ZW-EXTENDED-EUCLIDEAN-ALGORITHM-003 ZW-EXTENDED-EUCLIDEAN-ALGORITHM-005 →