Exercise 1.2.2 (Linear equation)

Find the greatest common divisor g of the numbers 1819 and 3587, and then find integers x and y to satisfy

1819 x + 3587 y = g

Answers

There’s a few ways to do this problem. One way is the following: whenever we write the remainder in Euclid’s algorithm, we always make sure to express that remainder as an integer linear combination of the original two numbers. The rightmost column below does this bookkeeping work, while the two columns on the left are the inputs to the gcd function at each stage.

3587 1819 1768 = 3587 1819
1819 1768 51 = 1819 1768 = 1819 (3587 1819) = 2 1819 3587
1768 51 34 = 1768 34 51 = (3587 1819) 34 (2 1819 3587) = 3587 1819 68 1819 + 34 3587 = 35 3587 69 1819
51 34 17 = 51 34 = (2 1819 3587) (35 3587 69 1819) = 2 1819 3587 35 3587 + 69 181917 = 71 1819 36 3587

Thus g = 17,x = 71,y = 36.

User profile picture
2022-05-12 18:21
Comments