Find the number of triples ( x , y , z ) of positive integers such that: 1 + 4 x + 4 y = z 2 where 1 < x , y , z < 6 0 0
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.
Superb solution!!!!!
Let's consider the case y ≥ x and put y = x + k . Note that z must be odd; so put z = 2 a + 1 . The equation is now
1 + 4 x + 4 x + k = 1 + 4 a + 4 a 2
Tidying up,
4 x − 1 ( 1 + 4 k ) = a ( a + 1 )
One of a and a + 1 is odd, the other even, and they are consecutive integers. So we must have a = 4 x − 1 and a + 1 = 1 + 4 k (assigning these the other way round doesn't work, as powers of 4 are too far apart).
From this, then, we get x − 1 = k , or x = k + 1 , y = 2 k + 1 . We're told x > 1 ; so k ≥ 1 (and, importantly for counting solutions later, x and y are distinct).
It's easy to check back through and see z = 1 + 2 2 k + 1 .
Since we've shown all solutions are of this form, we just need to check the largest possible k such that z < 6 0 0 ; this is k = 4 , giving z = 5 1 3 . So there are 4 solutions; but recall that we assumed y ≥ x , so we need to double this count to get a grand total of 8 solutions.
Best possible solution Chris
I used the simple code below to answer this question, the computation can be reduced if we observe that 4 1 0 > 6 0 0 2 and that the left side of the equation is always an odd integer. Moreover, if ( x , y , z ) is a triple satisfying the equation and x and y are distinct then ( y , x , z ) will also be a solution. The following is the output: ( 1 , 1 , 3 ) , ( 2 , 3 , 9 ) , ( 3 , 2 , 9 ) , ( 3 , 5 , 3 3 ) , ( 4 , 7 , 1 2 9 ) , ( 5 , 3 , 3 3 ) , ( 5 , 9 , 5 1 3 ) , ( 7 , 4 , 1 2 9 ) , ( 9 , 5 , 5 1 3 ) . Since x , y , z > 1 there are 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
Log in to reply
I will think of another way then. Thanks for letting me know.
Welcome!!!
Problem Loading...
Note Loading...
Set Loading...
Given that 1 + 4 x + 4 y = z 2 ⟹ 4 x + 4 y = z 2 − 1 = ( z − 1 ) ( z + 1 ) . Since the LHS is divisible by 4 , the RHS must also be divisible by 4 . Either z − 1 or z + 1 is divisible by 4 . Assuming z − 1 is divisible by 4 (it will be the same result if we assume 4 ∣ z + 1 ), and let z − 1 = 4 m , then:
4 x + 4 y 4 x − 1 + 4 y − 1 = ( z − 1 ) ( z + 1 ) = 4 m ( 4 m + 2 ) = 4 2 m 2 + 8 m = 4 m 2 + 2 m = 4 2 n + 2 + 4 n + 1 Since x , y > 1 , we can divide both sides by 4. For 4 ∣ RHS ⟹ m = 2 ( 4 n ) , where n is a non-negative integer.
Assumming x < y , equating the exponents, we have x = n + 2 and y = 2 n + 3 . And the solutions for 1 < x , y , z < 6 0 0 are:
n = 0 n = 1 n = 2 n = 3 ⟹ x = 2 ⟹ x = 3 ⟹ x = 4 ⟹ x = 5 y = 3 y = 5 y = 7 y = 9 z = 9 z = 3 3 z = 1 2 9 z = 5 1 3
We will get 4 more solutions swapping x with y . Therefore the total number of solutions is 8 .