Section 3.1 Linear Diophantine Equations
Historical remark 3.1.1. Diophantine and his equations.
These equations have been studied since the late Roman era, most notably by the (Greek speaking) mathematician Diophantus, from whom we derive their name, though we know little else about him. One of the most notable things about Diophantus' work is that it incorporates a proto-algebra which begins to use certain Greek letters for an unknown β an advance which, unfortunately, did not go anywhere for over a millenium.
While Diophantus studied much more complicated equations as well (as we will see), methods for solving equations like
Theorem 3.1.2. Solutions of Linear Diophantine Equations.
Given integers
Let
When
is not a multiple of (including if ), there is no solution.When
or is zero (but not both) and the nonzero one divides there are infinitely many solutions that require little work to obtain.When
and there are infinitely many solutions, but you will need to first obtain one solution in order to generate the others.When
and is a nontrivial multiple of there are infinitely many solutions that are easiest to generate by means of a solution to
Proof.
The details are in the following subsections.
When \(c\) is not a multiple of \(d\text{:}\) Subsection 3.1.1
When \(a\) or \(b\) is zero: Subsection 3.1.2
When \(c=d\text{:}\) Subsection 3.1.3
When \(c\) is a nontrivial multiple of \(d\text{:}\) Subsection 3.1.4
You should definitely follow the steps with specific simple numbers to see how each proof works. Examples 3.1.3 and 3.1.4 are good models.
Subsection 3.1.1 If is not a multiple of
When
Subsection 3.1.2 If or is zero
Suppose
Subsection 3.1.3 If
Suppose First, look at the structure of the solutions. The constants
and have switched their βaffiliationβ from and to and Also note that and have involved. It doesn't really matter which is which (switch for to see why), but if they have the same sign it is wrong. (When in doubt, try something and then check to see if the answers are right.)-
It's easy to check that any particular solution works.
and
by hypothesis. -
Why does this give all solutions? First note that since the only common divisors of
and are divisors of the integers and must be relatively prime.Now pick another solution
and let's show it has the desired form. Start withand gather terms so that
Since
divides the right side, it divides the left side as well. Now we use Proposition 2.4.10 and the observation in the previous paragraph to see must divide the factor of the left-hand side, so that there exists an integer such thatwhich is exactly what we just said was the form of all solutions.
Example 3.1.3. An easy example: .
Trial and error tells us that
which we may rewrite as
Subsection 3.1.4 If is a nontrivial multiple of the gcd
Finally, what if First, we can write
where again is the greatest common divisor.In Subsection 3.1.3 we just saw that there must be a solution for
Take any solution to this equation.-
By hypothesis,
Now multiply this by to obtainwhich shows
is a solution to the original equation -
Finally, the surprise is that the full solution has the same form as in Subsection 3.1.3:
It is easy to check and the proof is very similar to the case
(see Exercise 3.6.9). Intuitively, the reason you don't need the in the fractions is because they will just cancel anyway.
Example 3.1.4.
Try to do