The Solution of the Indefinite Equation by the Method of Euclidean Algorithm
Zhongqi Zhou
Hubei Coal Geology Bureau, Wuhan, China.
DOI: 10.4236/oalib.1112011   PDF    HTML   XML   27 Downloads   450 Views  

Abstract

In this paper, a new mathematical method is used to study the indefinite equations of binary quadratic and binary arbitrary order, the problem of judging and solving these indefinite equations with or without solutions is solved.

Share and Cite:

Zhou, Z. (2024) The Solution of the Indefinite Equation by the Method of Euclidean Algorithm. Open Access Library Journal, 11, 1-8. doi: 10.4236/oalib.1112011.

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 m=q x n +p y n ( n3 ) 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 m= x 2 + y 2 is given (its solution is expressed in a formula).

2) Give a determination method for m=q x n +p y n ( n2 ) with or without solutions.

3) A general solution for m=q x n +p y n is given.

2. Definition

Definition 1

Let q,p N + , m3 , q,p,m are all given positive integer, if m|q z n +p , then

q z n p( modm ) (1)

For the solution of congruence (1), see [3].

Definition 2

Let m>3 is a known positive integer, q a n p( modm ) , q,p is a known positive integer, n2 , ( q,p )=1 , define the following procedure as m and a Euclidean algorithm.

Denoted by the symbol: ( m,a ) q a n p( modm ) .

m= q 1 a+ r 1 0< r 1 <a (2)

a= q 2 r 1 + r 2 0< r 2 < r 1 (3)

r 1 = q 3 r 2 + r 3 0< r 3 < r 2 , (4)

r i3 = q i1 r i2 + r i1 q r i1 n >m , 0< r i1 < r i2 , (5)

r i2 = q i r i1 + r i q r i n <m , 0< r i < r i1 , (6)

3. Lemma

Lemma [4] Let m and a be positive integers, and do the Euclidean algorithm:

m= q 1 a+ r 1 , 0< r 1 <a

a= q 2 r 1 + r 2 , 0< r 2 < r 1

r k2 = q k r k1 + r k , 0< r k < r k1

record

s 0 =1, s 1 = q 1 , s k = q k s k1 + s k2 ,k2

l 0 =0, l 1 =1, l k = q k l k1 + l k2 ,k2

then

m l k a s k = ( 1 ) k1 r k . (7)

4. Theorems

Theorem 1. Let all positive integer of m>3 , z 2 1( modm ) less than m 2

be solved as: a 1 , a 2 ,, a k . Then m and a t Euclidean algorithm, m= x 2 + y 2 for all positive integer solution. t=1,,k . m a t is the negative integer solution (the same result is obtained with all negative integer solutions).

Proof: Let’s prove that m= x 2 + y 2 has a positive integer solution:

From a t 2 1( modm ) , we know: a t 2 +1=lm , l is a positive integer, m is a factor of a t 2 +1 , and a t 2 +1 has only prime factor of 2 and 4n + 1, so m also has only prime factors of 2 and 4s + 1, therefore, m= x 2 + y 2 has positive integer solutions [5].

( m, a t ) a t 2 1( modm ) and according to (7) obtain:

m l j a t s j = ( 1 ) j1 r j . (8)

Modulo m to (8) to obtain the congruence:

( 1 ) j1 × r j s j a t ( modm ) (9)

Let square both sides of (9):

r j 2 s j 2 × a t 2 ( modm ) (10)

Since a t 2 1( modm ) , the congruence (10) morphs into:

r j 2 + s j 2 0( modm ) .

Or r j 2 + s j 2 = l j m (11)

l j is a positive integer.

From a t 2 1( modm ) we know that: ( a,m )=1 , take ( m, a t ) a t 2 1( modm ) , always get the following result:

m= q 1 a t + r 1 0< r 1 < r 0 = a t ,

a= q 2 r 1 + r 2 0< r 2 < r 1 ,

r 1 = q 3 r 2 + r 3 0< r 3 < r 2 ,

r i3 = q i1 r i2 + r i1 r i1 2 >m , 0< r i1 < r i2 ,

r i2 = q i r i1 + r i r i 2 <m , 0< r i < r i1 ,

r k2 = q k r k1 + r k r k =1 .

According to the above result and (7), a further result can be obtained:

When k is even:

s 1 = r k( 11 ) = r k , s 2 = r k( 21 ) = r k1 ,, s k = r k( k1 ) = r 1 .

r k 2 = r i ( r i 2 <m, r i1 2 >m ), s i = s k 2 = r k( k 2 1 ) = r k 2 +1 = r i+1 .

When k is odd:

s 1 = r k1 , s 2 = r k2 ,, s j = r kj ,, s k = r kk = r 0 = a t .

r k1 2 = r i ( r i 2 <m, r i1 2 >m ), s i = s k1 2 = r k k1 2 = r k+1 2 = r i+1 .

According to the above result:

s i = r i+1 .

Since r i+1 < r i , according to (6) of definition 2: r i 2 <m , so the r i+1 2 = s i 2 < r i 2 <m .

According to (11) we get r i 2 + s i 2 = l i m , since l i is a positive integer, therefore

l i =1 .

Resulting in: m= r i 2 + s i 2 = r i 2 + r i+1 2 . That is x= r i ,y= r i+1 .

Inference:

According to theorem 1, for any positive integer m, as long as there is a , such that a 2 1( modm ) , then a positive integer solution of m= x 2 + y 2 can be obtained by Euclidean algorithm, the following indefinite equations can obtained by this method:

m= x 2 + y 2 ,m= 2 α p 1 α 1 p r α r , p s 1( mod4 ),s=1,2,,r;α=0,1.

Example 1. Find all positive integer solutions for 28249= x 2 + y 2 .

Solving the congruence z 2 1( mod28249 ) yields the following four positive integer solutions:

606,6118,11266,11471.

( 28249,606 ) 606 2 1( mod28249 ) Giving: r i =140, r i+1 =93; x 1 =140, y 1 =93 .

( 28249,6118 ) 6118 2 1( mod28249 ) Giving: r i =157, r i+1 =60; x 2 =157, y 2 =60 .

( 28249,11266 ) 11266 2 1( mod28249 ) Giving: r i =168, r i+1 =5; x 3 =168, y 3 =5 .

( 28249,11471 ) 11471 2 1( mod28249 ) Giving: r i =165, r i+1 =32; x 4 =165, y 4 =32 .

Theorem 2. Set the q,p1 , for a given positive integer, ( qx,py )=1 , n2 , if q z n p( modm ) no positive integer solutions, then

m=q x n +p y n

No positive integer solution.

Proof: If m=q x n +p y n has a positive integer solution, set it as: ( x 0 , y 0 ) , that is:

m=q x 0 n +p y 0 n , q x 0 n p y 0 n ( modm ), q ( x 0 y 0 ) n p( modm ).

When the x 0 y 0 a( modm ) , then q a n p( modm ) , with the q z n p( modm ) unsolved contradictions.

Theorem 3. Set the q,p1 , m > 1, for a given positive integer, ( qx,py )=1 , n2 , if q z n ( pmodm )( modm ) no positive integer solutions, then

m=q x n p y n

No positive integer solution.

Proof: If m=q x n p y n has a positive integer solution, set it as: ( x 0 , y 0 ) , that is:

m=q x 0 n p y 0 n , q x 0 n ( pmodm ) y 0 n ( modm ), q ( x 0 y 0 ) n ( pmodm )( modm ).

When the x 0 y 0 a( modm ) , then q a n ( pmodm )( modm ) , with the q z n ( pmodm )( modm ) unsolved contradictions.

Theorem 4. m is a given positive integer no nth power factor, n2 . q,p1 are all given positive integer, without nth power factors. ( q,p )=1 , q z n p( modm ) for all positive integers less than m are solved as:

a 1 , a 2 ,, a k . t=1,,k . (when n is even, only take all positive integer solutions

less than m 2 , since m a t and a t yield the same result).

Respectively ( m, a t ) q a t n p( modm ) and according to (7), respectively

( 1 ) i1 × r i = l i m s i a (12)

When n is even, if for some a t , when q r i1 n >m , q r i n <m , p s i n <m , then m=q x n +p y n there are positive integer solutions.

When n is odd, if for some a t such that i is even and

q r i1 n >m,q r i n <m,p s i n <m,

Then

m=q x n +p y n there are positive integer solution.

If for all a t such that q r i1 n >m,q r i n <m,p s i n >m and when n is odd, i is odd, then m=q x n +p y n there is not positive integer solution.

Proof: take (12) modulo m to get:

( 1 ) i1 × r i s i a t ( modm ) (13)

If n is even, raise both sides of (13) to the power n and multiply q to get:

q r i n s i n q a t n ( modm )

Since q a t n p( modm ) , q r i n +p s i n 0( modm ) , q r i n +p s i n = l i m .

According to (6) of the definition of ( m, a t ) q a t n p( modm ) : q r i n <m , if one p s i n <m .

Then

m=q r i n +p s i n .

If n is odd, raise both sides of (13) to the power n and multiply by q:

( 1 ) i1 q r i n s i n q a t n ( modm ) (14)

If there is an a t , such that i is even and p s i n <m , because q a t n p( modm ) ,

Then (14) become:

q r i n +p s i n 0( modm )

If there is a a t such that i is even and p s i n <m , from the definition of ( m, a t ) q a t n p( modm ) We know: q r i n <m , therefore

q r i n +p s i n =m.

If for all a t such that p s i n >m and when n is odd, i is odd, then m=q x n +p y n .

There are not positive integer solution.

This is because: when n is even, there is for any j:

q r j n +p s j n = l j m.

When j>i , s j > s i , p s j n >m , when j<i , q r j n >m , so, for any j have:

q r j n +p s j n >m.

When n is odd and i is odd, q r i n p s i n = l i m . q r i n +p s i n m .

Example 2. Find the positive integer solution of 14978=3 x 3 +5 y 3 .

Solving the congruence 3 z 3 5( mod14978 ) yields the following 3 positive integer.

Solution: 1153,7705,13609.

( 14978,1153 ) 3× 1153 3 5( mod14978 ) is obtained: r i = r 2 =11 , s i =13 , 5× 13 3 <14978 .

( 14978,7705 ) 3× 7705 3 5( mod14978 ) is obtained r i = r 5 =6 , s 5 =208 , n is odd, i is odd.

( 14978,13609 ) 3× 13609 3 5( mod14978 ) is obtained r i = r 5 =8 , s 5 =50 , n is odd, i is odd.

From the above results we can see: i=2 , 3× r 2 3 =3993<14978 , 5× 13 3 <14978 .

So the positive integer solution of the indefinite equation is:

x=11, y=13.

Example 3. Find the positive integer solution of 20527956= x 5 + y 5 .

Solving the congruence z 5 1( mod20527956 ) yields the following 5 positive integer solutions:

3539303,6224291,6284051,17595395,20527955.

( 20527956,3539303 ) 3639303 5 1( mod20527956 ) Giving: r i = r 4 =7 , s 4 =29 , 29 5 <20527956 .

( 20527956,6224291 ) 6224291 5 1( mod20527956 ) Giving r i = r 9 =13 , s 9 >60 , n is odd, i is odd.

( 20527956,6284051 ) 628405151( mod20527956 ) Giving r i = r 9 =23 , s 9 >60 , n is odd, i is odd.

( 20527956,17595395 ) 17595395 5 1( mod20527956 ) Giving r i = r 2 =29 , s 2 =7 , 7 5 <20527956 .

( 20527956,20527955 ) 205279551( mod20527956 ) Giving r i = r 1 =1 , s 1 =1 , n is odd, i is odd.

From the above results we can see: i=4 , s 4 5 = 29 5 <20527956 .

So the positive integer solution of the indefinite equation is:

x=7, y=29.

From the above results we can see: i=2 , s 2 5 = 7 5 <20527956 .

So the positive integer solution of the indefinite equation is:

x=29, y=7.

Example 4. Find the positive integer solution of 26067= x 3 +7 y 3 .

Solving the congruence 7 z 3 1( mod26067 ) yields the following 3 positive integer solutions: 6890,19208,26036.

( 26067,6890 ) 7× 6890 3 1( mod26067 ) is obtained r i = r 8 =10 , s 8 =227 , 227 3 >26067 .

( 26067,19208 ) 7× 19208 3 1( mod26067 ) is obtained r i = r 4 =14 , r i = r 4 =14 , 19 3 <26067 .

( 26067,26036 ) 7× 26036 3 1( mod26067 ) is obtained r i = r 3 =4 , s 3 =841 , n is odd, i is odd.

From the above results we can see: i=4 , 7× r 4 3 =7× 14 3 <26067 , 19 3 <26067 .

So the positive integer solution of the indefinite equation is:

x=19, y=14.

Example 5.

Example 5. Find the positive integer solution of 59783703=5 x 4 +11 y 4 .

Solving the congruence 5 z 3 11( mod59783703 ) has no positive integer solution.

According to theorem 2: indefinite equations have no positive integer solution.

5. Conclusions

For the indefinite equation m= x 2 + y 2 (m is a given positive integer), as long as z 2 1( modm ) has a solution, the positive integer solution can be obtained by the Euclidean algorithm.

For the indefinite equation m=q x n +p y n ( n2,m,q,p are all given positive integer, ( q,p )=1 ), it can be solve by solving the congruence q z n p( modm ) method to judge whether the equation has a positive integer solution, if q z n p( modm ) 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.

Conflicts of Interest

The author declares no conflicts of interest.

References

[1] Ke, Z. and Sun, Q. (2011) Talk about Indefinite Equations. Harbin Institute of Technology Press.
[2] Pan, C.D. and Pan, C.B. (2009) Elementary Number Theory. Beijing University Press, 279-280.
[3] Vinogradov (2014) Fundamentals of Number Theory and Vinogradov. Harbin Institute of Technology Press, 43-45.
[4] Ji, J. (2013) Number Theory and Application. Tsinghua University Press, 23.
[5] Silverman, J.H. (2008) Introduction to Number Theory. Ministry of Machinery Industry Press, 127.

Copyright © 2025 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.