2081 4

Discrete Structures20815 marksNumerical: Extended Euclidean Algorithm GCDExtended Euclidean Algorithm

Find the GCD of 12 and 16 using Extended Euclidean Algorithm.

Find the GCD of 12 and 16 using Extended Euclidean Algorithm. [5]

  • $a = 16$, $b = 12$ (arranged so larger is first) - Goal: find $\gcd(12,16)$ and integers $s, t$ such that $\gcd = s\cdot 12 + t\cdot 16$ --- Step Division Equation -------------------------- 1 $16 \div 12$ $16 = 1 \times 12 + 4$ 2 $12 \div 4$ $12 = 3 \times 4 + 0$ The last non-zero remainder is...
Up nextUsing mathematical induction show that 5 + 2 + 5 + 8 + ... + (3n-1) = fracn(3n+1)2