A Diophantine equation is an equation whose solutions are required to be integers. The unknowns are not allowed to range over the real numbers or complex numbers unless...
Equations in Integers
A Diophantine equation is an equation whose solutions are required to be integers. The unknowns are not allowed to range over the real numbers or complex numbers unless explicitly stated. This restriction changes the nature of the problem.
For example, the equation
has many real solutions, but number theory asks for integer solutions. One such solution is
since
A linear Diophantine equation in two unknowns has the form
where , and the goal is to find all pairs satisfying the equation.
The Divisibility Condition
The basic question is whether a solution exists at all. The answer is controlled by the greatest common divisor of and .
Let
Since and , we have
and
for all integers and . Therefore,
Thus, if
has an integer solution, then necessarily
This gives a necessary condition. It is also sufficient.
Existence Theorem
Theorem. Let , not both and equal to zero, and let
The equation
has an integer solution if and only if
If , then all integer solutions can be obtained from one particular solution.
By Bézout’s identity, there exist integers and such that
If , write
for some integer . Multiplying the Bézout identity by , we get
Hence
is an integer solution.
Conversely, if has an integer solution, then , so . This proves the theorem.
Description of All Solutions
Suppose is one integer solution of
Then
If is another solution, then
Subtracting the two equations gives
Thus
Let , and write
where
Then
Since and are coprime, . Hence there exists an integer such that
Substituting back gives
Therefore all integer solutions are
where .
Example
Consider
Here
and
So integer solutions exist. Dividing by , we get
One solution is
since
The general solution is
where .
For example, taking , we obtain
Each satisfies the original equation.
Geometric Interpretation
Over the real numbers, the equation
describes a line in the plane. A linear Diophantine equation asks which lattice points lie on this line. Here a lattice point means a point whose coordinates are both integers.
The divisibility condition
says exactly when the line passes through at least one lattice point. Once it passes through one lattice point, the full set of lattice points on the line forms an infinite arithmetic progression in two dimensions:
Thus a linear Diophantine equation has either no integer solutions or infinitely many integer solutions.