

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
The Euclidean Algorithm, which is a method to find the greatest common divisor (GCD) of two integers, as well as a specific pair of numbers r,s such that ra + sb = (a,b). a definition of GCD, Theorem 1.2, and a worksheet with warm-up exercises and solutions. It also explores the relationship between (a,b), (b,r), and common divisors of a, b, and r. useful for students studying number theory and algebra.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


(1) The factors of 18 are {± 1 , ± 2 , ± 3 , ± 6 , ± 9 , ± 18 }. The factors of 24 are {± 1 , ± 2 , ± 3 , ± 4 , ± 6 , ± 8 , ± 12 , ± 24 }. The GCD is 6. (2) (a, a) = |a|, (a, 7 a) = |a| and (a, 0) = |a|.
(1) Let d be a common factor of b and r. So there exist k 1 , k 2 ∈ Z such that b = dk 1 and r = dk 2. Substitute a = bq + r = dk 1 q + dk 2 = d(k 1 q + k 2 ). Since k 1 q + k 2 ∈ Z, we have d|a. Thus d is a common factor of a and b. We conclude that (b, r) ≤ (a, b) since the greatest common factor of b and r is at least some common factor of a and b, but not necessarily the greatest. (2) Let d be a common factor of b and a. So there exist k 1 , k 2 ∈ Z such that b = dk 1 and ra = dk 2. Substitute r = a − bq = dk 1 − dk 2 q = d(k 1 − k 2 q). So similarly, d|r. Thus d is a common factor of r and b. By a similar argument, we conclude that (b, r) ≥ (a, b) (3) This follows from (1) and (2), since both (b, r) ≥ (a, b) and (b, r) ≤ (a, b). (4) The integers a and b may have an out-of-control number of digits, but assuming (without loss of generality) that a > b, then we know that the pair b, r will be “smaller”. So instead we can compute the GCD (b, r), which is the same as the one we started with (a, b).
(^1) Factor is another word for divisor. Completely synonymous.
ANSWER: This shows several applications of the technique in B. We use repeated instances of the division algorithm to replace each pair (a, b) with a more manageable pair (b, r) where b is the smaller of the two original integers and r is the remainder upon dividing the larger by the smaller. We keep doing this until the remainder becomes 0. This eventually tells us that the GCD is of 524 and 148 is 4.
1003 =2 × 456 + 91 so (1003, 456) = (456, 91). 456 =91 × 5 + 1 so (456, 91) = (91, 1). 91 =91 × 1 + 0 so (91, 1) = (1, 0) = 1
So (1003, 456) = 1. Note that we could have stopped one step earlier, since obviously (91, 1) = 1.
(2) 68 = 148 − 80. So 68 = 148 − (524 − 3 × 148) = −524 + 4 × 148 (3) 12 = 80 − 68 = 524 − 3 × 148 − (−524 + 4 × 148) = 2 × 524 − 7 × 148 (4) 4 = 12 − 8 = 12 − (68 − 5 × 12) = −68 + 6 × 12 = −(−524 + 4 × 148) + 6 × (2 × 524 − 7 × 148) = 13 × 524 − 46 × 148