Preview Activity : Integer Solutions for Linear Equations in One Variable
Does the linear equation have a solutions that is an integer? Explain.
Does the linear equation have a solution that is an integer? Explain.
Does the linear equation have a solution that is an integer? Explain.
Does the linear equation have a solution that is an integer? Explain.
Prove the following theorem:
Theorem 8.18
Let with .
If divides , then the equation has exactly one solution that is an integer.
If does not divide , then the equation has no solution that is an integer.
Preview Activity : Linear Equations in Two Variables
Find integers and so that or explain why it is not possible to find such a pair of integers.
Find integers and so that or explain why it is not possible to find such a pair of integers.
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 x 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 x and one for y) 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.
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 x and y 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 preview activities, we were interested only in integer solutions for certain equations. In such instances, we give the equation a special name.
Definition: Diophantine equation
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 (circa 300 c.e.). Very little is known about Diophantus’ life except that he probably lived in Alexandria in the early part of the fourth centuryc.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: linear Diophantine equation in one variable
If and are integers with , then the equation is alinear Diophantine equation in one variable.
Theorem 8.18 in Preview Activity provides us with results that allows 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: linear Diophantine equation in two variables
Let , , and be integers with and . The Diophantine equation is called a linear Diophantine equation in two variables.
The equations that were investigated in Preview Activity 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.19: A Linear Diophantine Equation in Two Variables
The following example is similar to the examples studied in Preview Activity .
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
and ,
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 gcd(3, 4) = 1.
Progress Check 8.20: An Example of a Linear Diophantine Equation
Verify that the following table shows some solutions of the linear Diophantine equation .
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 .
Answer
Add texts here. Do not delete this text first.
Progress Check 8.21: Revisiting Preview Activity
Do the solutions for the linear Diophantine equations in Preview Activity show the same type of pattern as the solutions for the linear Diophantine equations in Example 8.19 and Progress Check 8.20? Explain.
Answer
Add texts here. Do not delete this text first.
The solutions for the linear Diophantine equations in Preview Activity , Example 8.19, and Progress Check 8.20 provide examples for the second part of Theorem 8.22.
Theorem 8.22
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 Part (1) is Exercise (1). For Part (2), we let , , and be integers with and , and let . We also assume that . Since , Theorem 8.8 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 (8.3.3) by m 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 (8.3.4) 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 (8.3.4). 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
divides
However, by Exercise (7) in Section 8.2, , and so by Theorem 8.12, we can conclude that divides . This means that there exists an integer such that , and solving for gives
Substituting this value for in equation (8.3.5) and solving for yields
This proves that every solution of the Diophantine equation can be written in the form prescribed in (8.3.4).
The proof of the following corollary to Theorem 8.22 is Exercise (2)
Theorem
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
Use the Euclidean Algorithm to verify that gcd.63; 336/ D 21. What conclusion can be made about linear Diophantine equation using Theorem 8.22? If this Diophantine equation has solutions, write formulas that will generate the solutions.
Use the Euclidean Algorithm to verify that gcd.144; 225/ D 9. What conclusion can be made about linear Diophantine equation using Theorem 8.22? If this Diophantine equation has solutions, write formulas that will generate the solutions.
Answer
Add texts here. Do not delete this text first.
Exercises 8.3
Prove Part (1) of Theorem 8.22:
Let , , and be integers with and , and let . If does not divide , then the linear Diophantine equation has no solution.
Prove Corollary 8.23.
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 .
Determine all solutions of the following linear Diophantine equations.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
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.22 to devise a plan to check the weight of this artifact.
Hint: Notice that gcd(50, 27) = 1. Start by writing 1 as a linear combination of 50 and 27.
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?
The goal of this exercise is to determine all (integer) solutions of the linear Diophantine equation in three variables
(a) First, notice that gcd(12, 9) = 3. 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 geneate solutions for .
(c) Use the general value for y from Exercise (6a) to determine the solutions of
(d) Use the results from Exercises (6a) and (6c) 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 Exercise (6d).
Use the method suggested in Exercise (6) to determine formulas that will generate all solutions of the Diophantine equation . Check the general solution.
Explain why the Diophantine equation has no solution.
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 (mod 3).
(b) If there is a solution to the congruence (mod 3), explain why there then must be an integer such that (mod 3).
(c) Use a proof by contradiction to prove that the Diophantine equation has no solution.
Use the method suggested in Exercise (9) to prove that the Diophantine equation has no solution.
Explorations and Activities
Linear Congruences in One Variable. Let be a natural number and let with . A congruence of the form (mod ) 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,
The integer is a solution for the congruence (mod 5) since (mod 5) is a true congruence. The integer is a solution for the congruence (mod 6) since (mod 6) is not a true congruence.
(a) Verify that and are the only solutions the linear congruence (mod 6) with .
(b) Show that the linear congruence (mod 6) has no solutions with .
(c) Determine all solutions of the linear congruence (mod 8) with .
The following parts of this activity show that we can use the results of Theorem 8.22 to help find all solutions of the linear congruence (mod 8).
(d) Verify that and are the only solutions the linear congruence (mod 8) with .
(e) Use the definition of “congruence” to rewrite the congruence (mod 8) in terms of "divides".
(f) Use the definition of “divides” to rewrite the result in part (11e) in the form of an equation. (An existential quantifier must be used.)
(g) Use the results of parts (11d) and (11f) to write an equation that will generate all the solutions of the linear congruence (mod 8).
Hint: Use Theorem 8.22. This can be used to generate solutions for and the variable introduced in part (11f). In this case, we are interested only in the solutions for .
Now let be a natural number and let with . A general linear congruence of the form (mod ) can be handled in the same way that we handled in (mod 8).
(h) Use the definition of “congruence” to rewrite (mod ) in terms of “divides.”
(i) Use the definition of “divides” to rewrite the result in part (11h) 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 (mod ) in the case where does not divide . Hint: Use Theorem 8.22.
(k) Let . State and prove a theorem about the solutions of the linear congruence (mod ) in the case where divides .