3. Solutions of the Equations and
In this section, we solve three Diophantine equations and with and prime .
In the proofs of the theorems, we frequently use the following facts which can be found in any standard elementary textbook.
(1): Let p be an odd prime and the Legendre symbol. We have if and only if (mod 8), or equivalently, if and only if (mod 8).
(2): For any odd number a, we have (mod 8).
Theorem 1. For and prime (mod 8)
, the Diophantine equationhas only the following non-negative integer solutions: - 1.
;
- 2.
;
- 3.
;
- 4.
;
- 5.
;
- 6.
;
- 7.
,
where n is any positive integer.
Proof. If , then by Lemma 1.
For
, through Equation (
1), we have
. Hence,
since
. Therefore, we obtain
for some non-negative integer
m. We write Equation (
1) as
Letting , we have . Hence, , . We also have , so, . In summary, we obtain .
We have the following four possibilities, namely, .
Case 1. and .
In this case, we have . Hence, . It is clear that is impossible since . For , is even. So is . Therefore, . So, we obtain or .
Case 1.1. .
We have . Since , we obtain .
Case 1.1.1. .
We have , . From , we have , . Letting , we have .
Case 1.1.2. .
We have , , , and . Letting , we have .
Case 1.2. .
From , we obtain . Hence, we have and , we obtain , and by Lemma 1. Hence, , , and . Letting , we obtain
Case 2. and .
In this case, we have , so, . If , then since both sides must be even. We obtain , which is impossible. Hence, we obtain and . Since , by Lemma 1, we know and . If , we obtain which is contrary to . So, , , , , and . Letting since , we have .
Case 3. and .
In this case, we have , so, .
Case 3.1. .
We have .
Case 3.1.1. .
Since , we obtain , there are two possibilities.
Case 3.1.1.1. .
We have , , , , and . Letting since , we obtain .
Case 3.1.1.2. .
We have , , , , and . Letting since , we obtain .
Case 3.1.2. .
From , since and , we obtain . Hence, . By Lemma 1, we obtain . Namely, which is impossible. So, there is no solution in this case.
Case 3.2. .
From , we know since both sides are even. We obtain .
Case 3.2.1. .
We have . Hence, .
Case 3.2.1.1. .
We obtain , , , , and . Letting , we have again (We obtain this solution first in Case 1.1.1.).
Case 3.2.1.2. .
We obtain , , , , and . Letting , we have again (We obtain this solution first in Case 1.1.2.).
Case 3.2.2. .
In , from , we obtain . Hence, . By Lemma 1, we know , , , . So, , , . Letting , we obtain again (we obtain this solution first in Case 1.2.).
Case 4. and .
In this case, we have . Hence, we have , which is impossible. □
Theorem 2. For and prime , the Diophantine equationhas only the following non-negative integer solutions: - 1.
;
- 2.
;
- 3.
,
where n is any positive integer.
Proof. For , we have .
For , we have .
From now on, we have
. If
, then we obtain
, which is absurd. Hence, we obtain
. Taking module
p in Equation (
2), we obtain
. So
for some integers,
, since
.
Equation (
2) can be written as
Letting , we have and .
Hence, , .
There are four cases, namely, .
Case 1. and .
We have , or .
It is clear that and is even. Hence, is also even. So, we obtain .
Now we have , or . By Lemma 1, we obtain and . Because , we know . After simple calculation, we obtain . Letting , we obtain .
Case 2. and .
We have , or .
It is clear that . So, we obtain since both sides are even. Then , a contradiction. Hence, there is no solution in this case.
Case 3. and .
We have , or .
It is clear that and is even. Hence, is also even. So, we obtain .
Now we have , or . By Lemma 1, we obtain . Same as before, we have . After simple calculation, we obtain . Letting , we obtain . This solution has been obtained in Case 1.
Case 4. and .
Since due to and , we obtain , a contradiction. Hence, there is no non-negative integer solution in this case. □
Theorem 3. For , the Diophantine equationhas only the following non-negative integer solutions: - 1.
;
- 2.
;
- 3.
;
- 4.
;
- 5.
:
- 6.
;
- 7.
,
where n is any positive integer.
Proof. If , then .
For
, taking module 3 in Equation (
3), we have
. It is clear that this congruence holds only if
.
There are two cases, namely, and .
Case 1. and .
Letting , , we obtain , which implies and with since .
Since the right side is odd, we obtain and . By Lemma 1, we receive .
For , we obtain , , , and . Letting , we obtain a solution .
For , we obtain , , , and . Hence, .
Letting , we obtain a solution .
Case 2. and .
Let , where , and .
Case 2.1. .
From Equation (
3), we obtain
,
. Hence, we obtain
, which is contrary to
.
Case 2.2. .
From Equation (
3), we obtain
, or
. Since
, we know
is odd. So, we obtain
and
By Lemma 2, we obtain .
For , we obtain , , , . Letting , we obtain the solution .
For , we obtain , , . From , we obtian . Since k is odd, letting , we obtain . Letting , we obtain the solution .
Case 2.3. .
From Equation (
3), we obtain
. Both
and
are odd. We obtain
and
. If
, we obtain
, which is absurd. So, we obtain
. Because
and
x is odd, we obtain
. Now, we only need to solve the following equation
We consider three possibilities. Namely, .
Case 2.3.1. .
We have , by Lemma 3, we obtain . So, we obtain , , , , and . From , we obtain and . Letting , we obtain a solution .
Case 2.3.2. .
We have , or ; by Lemma 3, we obtain . Hence, we have , , , , and . Letting , we obtain a solution .
Case 2.3.3. .
We have , or by Lemma 3; there is no non-negative integer solution. □