


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!



Exercise 1. Solve the linear Diophantine equation: 7x - 9y = 3. Exercise 2. Find all integers x and y such that: 2173x + 2491y = 53. Exercise 3. Find all integers x and y such that: 2173x + 2491y = 159. Exercise 4. Show there is no integers solution to: 2173x + 2491y = 210. Exercise 5. Solve the linear Diophantine equation: 858x + 253y = 33. Exercise 6. Find all integer solutions to: 258x + 147y = 369. Exercise 7. Show there are no integers solution to: 155x + 45y = 7. Exercise 8. Solve the linear Diophantine equation: 60x + 33y = 9. Solutions Exercise 1. Solve the linear Diophantine equation: 7x - 9y = 3. Solution. We find a particular solution of the given equation. Such a solution exists because gcd(7,9) = 1 and 3 is divisible by 1. One solution, found by inspection , of the given equation is x = 3, y = 2. We obtain all integer solutions of the given equation: x = 3 + 9k, y = 2 + 7k, for k an integer. NOTE: we can use any variable name for k here, such as t. Exercise 2 : Find integers x and y such that 2173x + 2491y = 53. Solution: From the Euclidean Algorithm: 2491 = 1 โ 2173 + 318 2173 = 6 โ 318 + 265 318 = 1 โ 265 + 53 265 = 5 โ 53 + 0 Thus, gcd(2173, 2491) = 53, which divides c = 53, so there is a solution to this linear Diophantine equation.
Working the Euclidean Algorithm backwards we find: 53 = 318 - 1 - 265 = 318 - 1(2173 - 6 โ 318) = 7 โ 318 - 1 โ 2173 = 7(2491 - 1 โ 2173) - 1โ 2173 = 7(2491) - 8(2173) Therefore, a particular solution is x = - 8 and y = 7. The general solution is x = - 8 + (2491/53)k = - 8 + 47k y = 7 - (2173/53)k = 7 โ 41 k, where k is any integer Exercise 3 : Find all integers x and y such that 2173x + 2491y = 159. Solution: Since gcd(2173, 2491) = 53 and 53 divides 159, we know that there is a solution to this linear Diophantine equation. We note that gcd(2173; 2491) = 53 from the previous exercise. Multiplying both sides by 3 we obtain 159. We know from Exercise 2 that 53= 7(2491) - 8(2173) So one solution of 2173x + 2491y = 159 is x = - 24, y = 21. The general solution is therefore x = - 24 + (2491/53)k = - 24 + 47k, y = 21 โ (2173/53)k = 21 โ 41 k, where k is any integer. Exercise 4 : Show there is no integer solution to: 2173x + 2491y = 210. Solution: In Exercise 2, we found that gcd(2173, 2491) = 53, and since 53 does not divide 210, there is no integer solution. Exercise 5. Solve the linear Diophantine equation 858 x + 253 y = 33. Solution. We apply the Euclidean algorithm to find gcd(858, 253). We have that 858 = 253 โ 3 + 99 253 = 99 โ 2 + 55 99 = 55 โ 1 + 44 55 = 44 โ 1 + 11 44 = 11 โ 4
X = 492 โ ( 147 / 3 )k= 492 โ 49 k y = โ 861 + ( 258 / 3 )k = 86 k โ 861, where k is an integer. Exercise 7. Show there are no integers solution to: 155x + 45y = 7. Solution. Check that gcd(155,45) = 5. As 5 does not divide 7, the equation has no integer solution. Exercise 8. Solve the linear Diophantine equation: 60x + 33y = 9. Solution. By the Euclidean algorithm we find: 60 = 1โ33 + 27 33 = 1โ27 + 6 27 = 4โ6 + 3 6 = 2โ3 + 0. We see the last nonzero remainder is 3 so gcd(60, 33) = 3. As 3|9, the equation has integer solutions. Reversing the steps, we find: 3 = 27 โ 4โ 6 = 27 โ 4โ(33 โ 27) = 5โ27 โ 4โ 33 = 5โ(60 โ 33) โ 4โ 33 = 5โ60 โ 9 ยท 33. One solution is then x = 15 and y = 27 (notice we multiplied by 3). All the solutions are given by x = 15 + ( 33 /3)k = 15 + 11k, y = โ27 โ ( 60 /3)k = โ27 โ 20 k, where k is an integer.