Linear Diophantine Equations
Given the equation
Where
- By LDET 1, if
does not divide , then the equation has no solutions - By LDET 1 and 2, if
does divide , then the equation has an infinite number of solutions
When
An equation in which both of the coefficients are integers is called a Diophantine equation.
Named after the 3rd century Hellenistic mathematician Diophantus of Alexandria.
The simplest Diophantine equation is
Where
Linear Diophantine Equation Theorem, Part 1 (LDET 1)
For all integers
has a integer solution if and only if
(See divisibility, GCD)
Let
First, assume the linear Diophantine equation
Conversely, assume that
By definition of divisibility, there exists an integer
Now, by BL, there exists integers
Multiplying both sides of that equation by k gives
Hence,
Which of the linear Diophantine equations has a solution?
Note that
- Since
is not divisible by , equation 1 does not have an integer solution - Since
is divisible by , equation 2 has an integer solution
To find an integer solution to
- Find a Certificate of Correctness
and for , which gives - Multiply this equation by
to get , which gives the solutions and
Determine whether the Diophantine equation
Apply the Extended Euclidean Algorithm
EA | |||||
---|---|---|---|---|---|
We see that
The certificate of correctness from the EEA table is
Multiplying this equation by
So one integer solution is
Linear Diophantine Equation Theorem, Part 2 (LDET 2)
Let
(See Set Builder Notation)
Let
We will prove that
- To prove
, we prove the implication
Let be an arbitrary integer, and assume that
Then we have
Where the last inequality follows since
Thus we conclude that
- To prove
, we prove the implication
Assume that , so we have
subtracting these two equations gives
Dividing this equation by
Where
From Division by GCD, we know that
Hence, fr'm Coprimeness and Divisibility, it follows that
and therefore, by the definition of divisibility, there exists an integer
Thus, we have
for some integer
Find all solutions to the Diophantine equation
From the previous example, we found that