

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Math 55, Euclidean Algorithm Worksheet Feb 12, 2013
For each pair of integers (a, b), use the Euclidean algorithm to find their gcd. Then reverse the steps of the algorithm to find integers s and t such that as + bt = gcd(a, b).
so gcd(74, 383) = 1. 13 = 383 − 5 · 74 9 = 74 − 5 · 13 = 74 − 5(383 − 5 · 74) = 26 · 74 − 5 · 383 4 = 13 − 9 = (383 − 5 · 74) − (26 · 74 − 5 · 383) = 6 · 383 − 31 · 74 1 = 9 − 2 · 4 = (26 · 74 − 5 · 383) − 2(6 · 383 − 31 · 74) = 88 · 74 − 17 · 383 so s = 88 and t = −17.
so gcd(7544, 115) = 23. 69 = 7544 − 65 · 115 46 = 115 − 69 = 115 − (7544 − 65 · 115) = 66 · 115 − 7544 23 = 69 − 46 = (7544 − 65 · 115) − (66 · 115 − 7544) = 2 · 7544 − 131 · 115 so s = 2 and t = −131.
so s = −3 and t = 86.
What is the inverse of 74 mod 383?
We computed above that 1 = 88 · 74 − 17 · 383
so 1 ≡ 88 · 74 mod 383.
So by definition of inverse, 88 is the inverse of 74 mod 383.