Diophantine Equations Of The Power Dynasty

Find the number of triples ( x , y , z ) (x,y,z) of positive integers such that: 1 + 4 x + 4 y = z 2 1+4^x+4^y=z^2 where 1 < x , y , z < 600 1<x,y,z<600


The answer is 8.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Chew-Seong Cheong
Mar 25, 2020

Given that 1 + 4 x + 4 y = z 2 4 x + 4 y = z 2 1 = ( z 1 ) ( z + 1 ) 1 + 4^x + 4^y = z^2 \implies 4^x + 4^y = z^2 - 1 = (z-1)(z+1) . Since the LHS is divisible by 4 4 , the RHS must also be divisible by 4 4 . Either z 1 z-1 or z + 1 z+1 is divisible by 4 4 . Assuming z 1 z-1 is divisible by 4 4 (it will be the same result if we assume 4 z + 1 4 \mid z+1 ), and let z 1 = 4 m z-1 = 4m , then:

4 x + 4 y = ( z 1 ) ( z + 1 ) = 4 m ( 4 m + 2 ) = 4 2 m 2 + 8 m Since x , y > 1 , we can divide both sides by 4. 4 x 1 + 4 y 1 = 4 m 2 + 2 m For 4 RHS m = 2 ( 4 n ) , where = 4 2 n + 2 + 4 n + 1 n is a non-negative integer. \begin{aligned} 4^x + 4^y & = (z-1)(z+1) \\ & = 4m(4m+2) \\ & = 4^2m^2 + 8m & \small \blue{\text{Since }x, y > 1 \text{, we can divide both sides by 4.}} \\ 4^{x-1} + 4^{y-1} & = 4m^2 + 2m & \small \blue{\text{For }4 \mid \text{RHS }\implies m = 2(4^n) \text{, where}} \\ & = 4^{2n+2} + 4^{n+1} & \small \blue{n \text{ is a non-negative integer.}} \end{aligned}

Assumming x < y x < y , equating the exponents, we have x = n + 2 x = n + 2 and y = 2 n + 3 y=2n+3 . And the solutions for 1 < x , y , z < 600 1 < x, y, z < 600 are:

n = 0 x = 2 y = 3 z = 9 n = 1 x = 3 y = 5 z = 33 n = 2 x = 4 y = 7 z = 129 n = 3 x = 5 y = 9 z = 513 \begin{array} {llll} n = 0 & \implies x = 2 & y = 3 & z = 9 \\ n = 1 & \implies x = 3 & y = 5 & z = 33 \\ n = 2 & \implies x = 4 & y = 7 & z = 129 \\ n = 3 & \implies x = 5 & y = 9 & z = 513 \end{array}

We will get 4 4 more solutions swapping x x with y y . Therefore the total number of solutions is 8 \boxed 8 .

Superb solution!!!!!

Mohammed Imran - 1 year, 2 months ago

Log in to reply

Glad that you like it.

Chew-Seong Cheong - 1 year, 2 months ago
Chris Lewis
Mar 25, 2020

Let's consider the case y x y\ge x and put y = x + k y=x+k . Note that z z must be odd; so put z = 2 a + 1 z=2a+1 . The equation is now

1 + 4 x + 4 x + k = 1 + 4 a + 4 a 2 1+4^x+4^{x+k}=1+4a+4a^2

Tidying up,

4 x 1 ( 1 + 4 k ) = a ( a + 1 ) 4^{x-1} \left( 1+4^k \right) = a(a+1)

One of a a and a + 1 a+1 is odd, the other even, and they are consecutive integers. So we must have a = 4 x 1 a=4^{x-1} and a + 1 = 1 + 4 k a+1=1+4^k (assigning these the other way round doesn't work, as powers of 4 4 are too far apart).

From this, then, we get x 1 = k x-1=k , or x = k + 1 x=k+1 , y = 2 k + 1 y=2k+1 . We're told x > 1 x>1 ; so k 1 k\ge1 (and, importantly for counting solutions later, x x and y y are distinct).

It's easy to check back through and see z = 1 + 2 2 k + 1 z=1+2^{2k+1} .

Since we've shown all solutions are of this form, we just need to check the largest possible k k such that z < 600 z<600 ; this is k = 4 k=4 , giving z = 513 z=513 . So there are 4 4 solutions; but recall that we assumed y x y \ge x , so we need to double this count to get a grand total of 8 \boxed8 solutions.

Best possible solution Chris

Mohammed Imran - 1 year, 2 months ago
Sabhrant Sachan
Mar 25, 2020

I used the simple code below to answer this question, the computation can be reduced if we observe that 4 10 > 60 0 2 4^{10} > 600^2 and that the left side of the equation is always an odd integer. Moreover, if ( x , y , z ) (x,y,z) is a triple satisfying the equation and x x and y y are distinct then ( y , x , z ) (y,x,z) will also be a solution. The following is the output: ( 1 , 1 , 3 ) , ( 2 , 3 , 9 ) , ( 3 , 2 , 9 ) , ( 3 , 5 , 33 ) , ( 4 , 7 , 129 ) , ( 5 , 3 , 33 ) , ( 5 , 9 , 513 ) , ( 7 , 4 , 129 ) , ( 9 , 5 , 513 ) (1,1,3) , (2,3,9) , (3,2,9) , (3,5,33) , (4,7,129) , (5,3,33) , (5,9,513) , (7,4,129) , (9,5,513) . Since x , y , z > 1 x,y,z>1 there are 8 8 possible triples.

int main(){

    int x,y,z;

for( x=1 ; x<10 ; x++ )
for( y=1 ; y<10 ; y++ )
for( z=1 ; z<600 ; z+=2 )
if( (1+pow(4,x)+pow(4,y)-z*z)==0 )
printf("(%d,%d,%d) \n",x,y,z);

return 0;

}

I am extremely sorry, but no codes allowed

Mohammed Imran - 1 year, 2 months ago

Log in to reply

I will think of another way then. Thanks for letting me know.

Sabhrant Sachan - 1 year, 2 months ago

Welcome!!!

Mohammed Imran - 1 year, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...