-- Apr 6 In-Class Exercise Thread
Extended-Euclid(3003, 182)
(d', x', y') = Extended-Euclid(182, 91)
(d', x', y') = Extended-Euclid(91, 0)
b == 0 : returns (91, 1, 0)
Hence, (d', x', y') = (91, 1, 0)
returns (91, 0, 1)
(d', x', y') = (91, 0, 1)
returns (91, 1, -16)
Final: (91, 1, -16)
(
Edited: 2022-04-11)
<pre>
Extended-Euclid(3003, 182)
(d', x', y') = Extended-Euclid(182, 91)
(d', x', y') = Extended-Euclid(91, 0)
b == 0 : returns (91, 1, 0)
Hence, (d', x', y') = (91, 1, 0)
returns (91, 0, 1)
(d', x', y') = (91, 0, 1)
returns (91, 1, -16)
Final: (91, 1, -16)
</pre>