Docsity

Worked Exercises for Linear Diophantine Equations, Lecture notes of Linear Algebra

Toggle sidebar
bg1
Worked Exercises for Linear Diophantine Equations
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.
pf3
pf4

Partial preview of the text

Download Worked Exercises for Linear Diophantine Equations and more Lecture notes Linear Algebra in PDF only on Docsity!

Worked Exercises for Linear Diophantine Equations

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.