The Solution of the Indefinite Equation by the Method of Euclidean Algorithm ()
1. Introduction
On the whole, there is no uniform method to solve the indefinite equations of more than two degrees, but some results have been obtained for some special equations of higher order [1].
If a positive integer can be expressed as the sum of squares of two numbers, it is generally difficult to give a formula to express its solution in detail [2].
The study of indefinite equation
is very rare, and there is no general determination method for this kind of indefinite equation with and without solutions, and there is no general method for solving it.
In this paper, the following problems will be solved by using the Euclidean algorithm:
1) A general solution for
is given (its solution is expressed in a formula).
2) Give a determination method for
with or without solutions.
3) A general solution for
is given.
2. Definition
Definition 1
Let
,
,
are all given positive integer, if
, then
(1)
For the solution of congruence (1), see [3].
Definition 2
Let
is a known positive integer,
,
is a known positive integer,
,
, define the following procedure as m and
Euclidean algorithm.
Denoted by the symbol: .
(2)
, (3)
, (4)
,
, (5)
,
, (6)
3. Lemma
Lemma [4] Let m and
be positive integers, and do the Euclidean algorithm:
,
,
,
record
then
(7)
4. Theorems
Theorem 1. Let all positive integer of
,
less than
be solved as:
. Then m and
Euclidean algorithm,
for all positive integer solution.
.
is the negative integer solution (the same result is obtained with all negative integer solutions).
Proof: Let’s prove that
has a positive integer solution:
From
, we know:
, l is a positive integer, m is a factor of
, and
has only prime factor of 2 and 4n + 1, so m also has only prime factors of 2 and 4s + 1, therefore,
has positive integer solutions [5].
and according to (7) obtain:
(8)
Modulo m to (8) to obtain the congruence:
(9)
Let square both sides of (9):
(10)
Since
, the congruence (10) morphs into:
.
Or
(11)
is a positive integer.
From
we know that:
, take , always get the following result:
,
,
,
,
,
,
,
.
According to the above result and (7), a further result can be obtained:
When k is even:
When k is odd:
According to the above result:
Since
, according to (6) of definition 2:
, so the
.
According to (11) we get
, since
is a positive integer, therefore
.
Resulting in:
. That is
.
Inference:
According to theorem 1, for any positive integer m, as long as there is
, such that
, then a positive integer solution of
can be obtained by Euclidean algorithm, the following indefinite equations can obtained by this method:
Example 1. Find all positive integer solutions for
.
Solving the congruence
yields the following four positive integer solutions:
Giving:
.
Giving:
.
Giving:
.
Giving:
.
Theorem 2. Set the
, for a given positive integer,
,
, if
no positive integer solutions, then
No positive integer solution.
Proof: If
has a positive integer solution, set it as:
, that is:
When the
, then
, with the
unsolved contradictions.
Theorem 3. Set the
, m > 1, for a given positive integer,
,
, if
no positive integer solutions, then
No positive integer solution.
Proof: If
has a positive integer solution, set it as:
, that is:
When the
, then
, with the
unsolved contradictions.
Theorem 4. m is a given positive integer no nth power factor,
.
are all given positive integer, without nth power factors.
,
for all positive integers less than m are solved as:
.
. (when n is even, only take all positive integer solutions
less than
, since
and
yield the same result).
Respectively and according to (7), respectively
(12)
When n is even, if for some
, when
,
,
, then
there are positive integer solutions.
When n is odd, if for some
such that i is even and
Then
there are positive integer solution.
If for all
such that
and when n is odd, i is odd, then
there is not positive integer solution.
Proof: take (12) modulo m to get:
(13)
If n is even, raise both sides of (13) to the power n and multiply q to get:
Since
,
,
.
According to (6) of the definition of :
, if one
.
Then
If n is odd, raise both sides of (13) to the power n and multiply by q:
(14)
If there is an
, such that i is even and
, because
,
Then (14) become:
If there is a
such that i is even and
, from the definition of We know:
, therefore
If for all
such that
and when n is odd, i is odd, then
.
There are not positive integer solution.
This is because: when n is even, there is for any j:
When
,
,
, when
,
, so, for any j have:
When n is odd and i is odd,
.
.
Example 2. Find the positive integer solution of
.
Solving the congruence
yields the following 3 positive integer.
Solution: 1153,7705,13609.
is obtained:
,
,
.
is obtained
,
, n is odd, i is odd.
is obtained
,
, n is odd, i is odd.
From the above results we can see:
,
,
.
So the positive integer solution of the indefinite equation is:
Example 3. Find the positive integer solution of
.
Solving the congruence
yields the following 5 positive integer solutions:
Giving:
,
,
.
Giving
,
, n is odd, i is odd.
Giving
,
, n is odd, i is odd.
Giving
,
,
.
Giving
,
, n is odd, i is odd.
From the above results we can see:
,
.
So the positive integer solution of the indefinite equation is:
From the above results we can see:
,
.
So the positive integer solution of the indefinite equation is:
Example 4. Find the positive integer solution of
.
Solving the congruence
yields the following 3 positive integer solutions: 6890,19208,26036.
is obtained
,
,
.
is obtained
,
,
.
is obtained
,
, n is odd, i is odd.
From the above results we can see:
,
,
.
So the positive integer solution of the indefinite equation is:
Example 5.
Example 5. Find the positive integer solution of
.
Solving the congruence
has no positive integer solution.
According to theorem 2: indefinite equations have no positive integer solution.
5. Conclusions
For the indefinite equation
(m is a given positive integer), as long as
has a solution, the positive integer solution can be obtained by the Euclidean algorithm.
For the indefinite equation
(
are all given positive integer,
), it can be solve by solving the congruence
method to judge whether the equation has a positive integer solution, if
has no positive integer solution, then the equation has no positive Integer solution; if the congruence formula has solutions, it can be judged and solved according to the Euclidean algorithm given in this paper.
The above method is a general and effective method.
Conflicts of Interest
The author declares no conflicts of interest.