Section 8.3 Linear Diophantine Equations
Beginning Activity Beginning Activity 1: Integer Solutions for Linear Equations in One Variable
1.
Does the linear equation have a solution that is an integer? Explain.
2.
Does the linear equation have a solution that is an integer? Explain.
3.
Does the linear equation have a solution that is an integer? Explain.
4.
Does the linear equation have a solution that is an integer? Explain.
5.
Prove the following theorem:
Theorem 8.20.
Let with
Beginning Activity Beginning Activity 2: Linear Equations in Two Variables
1.
Find integers and so that or explain why it is not possible to find such a pair of integers.
2.
Find integers and so that or explain why it is not possible to find such a pair of integers.
3.
Notice that and is a solution of the equation and that and is also a solution of the equation
(a)
Find two pairs of integers and so that and (Try to keep the integer values of as small as possible.)
(b)
Find two pairs of integers and so that and (Try to keep the integer values of as close to 2 as possible.)
(c)
Determine formulas (one for and one for ) that will generate pairs of integers and so that
Hint.The two formulas can be written in the form and where is an arbitrary integer and and are specific integers.
4.
Notice that and is a solution of the equation and that and is a solution of the equation
(a)
Find two pairs of integers and so that and (Try to keep the integer values of as small as possible.)
(b)
Find two pairs of integers and so that and (Try to keep the integer values of as close to 4 as possible.)
(c)
Determine formulas (one for and one for ) that will generate pairs of integers and so that
Hint.The two formulas can be written in the form and where is an arbitrary integer and and are specific integers.
In the two beginning activities, we were interested only in integer solutions for certain equations. In such instances, we give the equation a special name.
Definition.
An equation whose solutions are required to be integers is called a Diophantine equation.
Diophantine equations are named in honor of the Greek mathematician Diophantus of Alexandria (third century C.E.). Very little is known about Diophantus' life except that he probably lived in Alexandria in the early part of the fourth century C.E. and was probably the first to use letters for unknown quantities in arithmetic problems. His most famous work, Arithmetica, consists of approximately 130 problems and their solutions. Most of these problems involved solutions of equations in various numbers of variables. It is interesting to note that Diophantus did not restrict his solutions to the integers but recognized rational number solutions as well. Today, however, the solutions for a so-called Diophantine equation must be integers.
Definition.
If and are integers with then the equation is a linear Diophantine equation in one variable.
Theorem 8.20 in Beginning Activity 1 provides us with results that allow us to determine which linear diophantine equations in one variable have solutions and which ones do not have a solution.
A linear Diophantine equation in two variables can be defined in a manner similar to the definition for a linear Diophantine equation in one variable.
Definition.
Let and be integers with and The Diophantine equation is called a linear Diophantine equation in two variables.
The equations that were investigated in Beginning Activity 2 were linear Diophantine equations in two variables. The problem of determining all the solutions of a linear Diophantine equation has been completely solved. Before stating the general result, we will provide a few more examples.
Example 8.21. A Linear Diophantine Equation in Two Variables.
The following example is similar to the examples studied in Beginning Activity 2.
We can use substitution to verify that and is a solution of the linear Diophantine equation
The following table shows other solutions of this Diophantine equation.
It would be nice to determine the pattern that these solutions exhibit. If we consider the solution and to be the βstarting point,β then we can see that the other solutions are obtained by adding 3 to and subtracting 4 from in the previous solution. So we can write these solutions to the equation as
where is an integer. We can use substitution and algebra to verify that these expressions for and give solutions of this equation as follows:
We should note that we have not yet proved that these solutions are all of the solutions of the Diophantine equation This will be done later.
If the general form for a linear Diophantine equation is then for this example, and Notice that for this equation, we started with one solution and obtained other solutions by adding to and subtracting from in the previous solution. Also, notice that
Progress Check 8.22. An Example of a Linear Diophantine Equation.
(a)
Verify that the following table shows some solutions of the linear Diophantine equation
(b)
Follow the pattern in this table to determine formulas for and that will generate integer solutions of the equation Verify that the formulas actually produce solutions for the equation
Solution. and where can be any integer. Again, this does not prove that these are the only solutions.
Progress Check 8.23. Revisiting Beginning Activity 2.
Do the solutions for the linear Diophantine equations in Beginning Activity 2 show the same type of pattern as the solutions for the linear Diophantine equations in Example 8.21 and Progress Check 8.22? Explain.
Solution.
One of the Diophantine equations in Beginning Activity 2 was We were able to write the solutions of this Diophantine equation in the form
where is an integer. Notice that and is a solution of this equation. If we consider this equation to be in the form then we see that and Solutions for this equation can be written in the form
where is an integer.
The other equation was So in this case, and Also notice that We note that and is one solution of this Diophantine equation and solutions can be written in the form
where is an integer. Using the values of and given above, we see that the solutions can be written in the form
where is an integer.
The solutions for the linear Diophantine equations in Beginning Activty 2, Example 8.21, and Progress Check 8.22 provide examples for the second part of Theorem 8.24.
Theorem 8.24.
Let and be integers with and and let
If does not divide then the linear Diophantine equation has no solution.
-
If divides then the linear Diophantine equation has infinitely many solutions. In addition, if is a particular solution of this equation, then all the solutions of this equation can be written in the form
for some integer
Proof.
The proof of Item 1 is Exercise 8.3.1. For Item 2, we let and be integers with and and let We also assume that Since Theorem 8.10 tells us that is a linear combination of and So there exist integers and such that
Since there exists an integer such that We can now multiply both sides of equation (79) by and obtain
This means that is a solution of and we have proved that the Diophantine equation has at least one solution.
Now let be any particular solution of let and let
We now verify that for each the equations in (80) produce a solution of
This proves that the Diophantine equation has infinitely many solutions.
We now show that every solution of this equation can be written in the form described in equation (80). So suppose that and are integers such that Then
and this equation can be rewritten in the following form:
Dividing both sides of this equation by we obtain
This implies that
However, by Task 7.a in Section 8.2, and so by Theorem 8.14, we can conclude that divides This means that there exists an integer such that and solving for gives
Substituting this value for in equation (81) and solving for yields
This proves that every solution of the Diophantine equation can be written in the form prescribed in (2).
The proof of the following corollary to Theorem 8.24 is Exercise 8.3.2.
Corollary 8.25.
Let and be integers with and If and are relatively prime, then the linear Diophantine equation has infinitely many solutions. In addition, if is a particular solution of this equation, then all the solutions of the equation are given by
where
Progress Check 8.26. Linear Diophantine Equations.
(a)
Use the Euclidean Algorithm to verify that What conclusion can be made about linear Diophantine equation using Theorem 8.24? If this Diophantine equation has solutions, write formulas that will generate the solutions.
Solution.Since 21 does not divide 40, Theorem 8.24 tells us that the Diophantine equation has no solutions. Remember that this means there is no ordered pair of integers such that However, if we allow and to be real numbers, then there are real number solutions. In fact, we can graph the straight line whose equation is in the Cartesian plane. From the fact that there is no pair of integers such that we can conclude that there is no point on the graph of this line in which both coordinates are integers.
(b)
Use the Euclidean Algorithm to verify that What conclusion can be made about linear Diophantine equation using Theorem 8.24? If this Diophantine equation has solutions, write formulas that will generate the solutions.
Solution.
To write formulas that will generate all the solutions, we first need to find one solution for This can sometimes be done by trial and error, but there is a systematic way to find a solution. The first step is to use the Euclidean Algorithm in reverse to write as a linear combination of 144 and 225. See Section 8.1 to review how to do this. The result from using the Euclidean Algorithm in reverse for this situation is
If we multiply both sides of this equation by 3, we obtain
This means that is a solution of the linear Diophantine equation We can now use Theorem 8.24 to conclude that all solutions of this Diophantine equation can be written in the form
where Simplifying, we see that all solutions can be written in the form
where
We can check this general solution as follows: Let Then
Exercises Exercises
1.
Prove Item 1 of Theorem 8.24:
Let and be integers with and and let If does not divide then the linear Diophantine equation has no solution.
2.
Prove Corollary 8.25.
Let and be integers with and If and are relatively prime, then the linear Diophantine equation has infinitely many solutions. In addition, if is a particular solution of this equation, then all the solutions of the equation are given by
where
3.
Determine all solutions of the following linear Diophantine equations.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
4.
A certain rare artifact is supposed to weigh exactly 25 grams. Suppose that you have an accurate balance scale and 500 each of 27 gram weights and 50 gram weights. Explain how to use Theorem 8.24 to devise a plan to check the weight of this artifact.
Hint.Notice that Start by writing 1 as a linear combination of 50 and 27.
Answer.There are several possible solutions to this problem, each of which can be generated from the solutions of the Diophantine equation
5.
On the night of a certain banquet, a caterer offered the choice of two dinners, a steak dinner for $25 and a vegetarian dinner for $16. At the end of the evening, the caterer presented the host with a bill (before tax and tips) for $1461. What is the minimum number of people who could have attended the banquet? What is the maximum number of people who could have attended the banquet?
Answer.This problem can be solved by finding all solutions of a linear Diophantine equation where both and are positive. The mininum number of people attending the banquet is 66.
6.
The goal of this exercise is to determine all (integer) solutions of the linear Diophantine equation in three variables
(a)
First, notice that Determine formulas that will generate all solutions for the linear Diophantine equation
(b)
Explain why the solutions (for and ) of the Diophantine equation can be used to generate solutions for
Answer.If and we can substitute for and obtain
(c)
Use the general value for from Task 8.3.6.a to determine the solutions of
Answer.
Rewrite the equation as A general solution for this linear Diophantine equation is
(d)
Use the results from Task 8.3.6.a and Task 8.3.6.c to determine formulas that will generate all solutions for the Diophantine equation
Note: These formulas will involve two arbitrary integer parameters. Substitute specific values for these integers and then check the resulting solution in the original equation. Repeat this at least three times.
(e)
Check the general solution for from Task 8.3.6.d.
7.
Use the method suggested in Exercise 8.3.6 to determine formulas that will generate all solutions of the Diophantine equation Check the general solution.
8.
Explain why the Diophantine equation has no solution.
9.
The purpose of this exercise will be to prove that the nonlinear Diophantine equation has no solution.
(a)
Explain why if there is a solution of the Diophantine equation then that solution must also be a solution of the congruence
(b)
If there is a solution to the congruence explain why there then must be an integer such that
(c)
Use a proof by contradiction to prove that the Diophantine equation has no solution.
10.
Use the method suggested in Exercise 8.3.9 to prove that the Diophantine equation has no solution.
Activity 49. Linear Congruences in One Variable.
Let be a natural number and let with A congruence of the form is called a linear congruence in one variable. This is called a linear congruence since the variable occurs to the first power.
A solution of a linear congruence in one variable is defined similarly to the solution of an equation. A solution is an integer that makes the resulting congruence true when the integer is substituted for the variable For example,
(a)
Verify that and are the only solutions the linear congruence with
(b)
Show that the linear congruence has no solutions with
(c)
Determine all solutions of the linear congruence with
(d)
The following parts of this activity show that we can use the results of Theorem 8.24 to help find all solutions of the linear congruence
Verify that and are the only solutions for the linear congruence with
(e)
Use the definition of βcongruenceβ to rewrite the congruence in terms of βdivides.β
(f)
Use the definition of βdividesβ to rewrite the result in Task 49.e in the form of an equation. (An existential quantifier must be used.)
(g)
Use the results of Task 49.d and Task 49.f to write an equation that will generate all the solutions of the linear congruence
Hint.Use Theorem 8.24. This can be used to generate solutions for and the variable introduced in Task 49.f. In this case, we are interested only in the solutions for
(h)
Now let be a natural number and let with A general linear congruence of the form can be handled in the same way that we handled in
Use the definition of βcongruenceβ to rewrite in terms of βdivides.β
(i)
Use the definition of βdividesβ to rewrite the result in Task 49.h in the form of an equation. (An existential quantifier must be used.)
(j)
Let State and prove a theorem about the solutions of the linear congruence in the case where does not divide
(k)
Let State and prove a theorem about the solutions of the linear congruence in the case where divides