

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A worksheet on the Euclidean algorithm, which is used to find the greatest common divisor of two integers. The worksheet provides examples of how to use the algorithm and how to reverse the steps to find integers s and t such that as+bt=gcd(a,b). The examples include finding the gcd of pairs of integers and then finding s and t for each pair. likely to be useful as study notes or exam preparation for a course on number theory or abstract algebra.
Typology: Study notes
1 / 2
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.