If both x and y are non-negative integers for which ( x y − 7 ) 2 = x 2 + y 2 , then find the sum of all possible values of x .
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.
I solved the problem by writing the equation as a quadratic in xy and using the fact that the discriminant must be a perfect square found that x+y=7 and inspection reveals the values of x and y which satisfy the equation
x y − 7 = x 2 + y 2 ≤ x + y x y − 7 ≤ x + y x + y − x y + 7 ≤ 0 ( x − 1 ) ( 1 − y ) + 8 ≤ 0 ( x − 1 ) ( y − 1 ) ≤ 8
A pretty tight bound for our variables considering the little amount of work we had to put into it. Let's make it tighter by trying small values of y .
y = 0 ⟹ 7 2 = y 2 ⟹ y = 7 y = 1 ⟹ ( x − 7 ) 2 = x 2 + 1 ⟹ x 2 − 1 4 x + 4 9 = x 2 + 1 ⟹ 1 4 x = 4 8 ⟹ x ∈ Z y = 2 ⟹ ( 2 x − 7 ) 2 = x 2 + 4 ⟹ 4 x 2 − 2 8 x + 4 9 = x 2 + 4 ⟹ 3 x 2 − 2 8 x + 4 5 = 0 ⟹ x ∈ Z
This last assertion is proven by considering the discriminant of the polynomial which evaluates to 244 which is not a perfect square. We now test y = 3 which results in 8 x 2 − 4 2 x + 4 0 = 0 ⟹ x = 4 . Now any other solution would imply that y ≥ 4 ⟹ y − 1 ≥ 3 ⟹ x − 1 ≤ 3 8 ⟹ x ≤ 3 . We no longer need to check anymore because the equation is symmetric so finding solutions such that x ≤ 3 is equivalent to finding solutions such that y ≤ 3 which is what we just did. Thus, the possible values are 0 , 7 , 3 , 4 .
Alternative: Another way of using the symmetry of the equation to realize we only need to check x ≤ 3 is by assuming that y ≥ x which would imply ( x − 1 ) ( x − 1 ) ≤ 8 ⟹ ( x − 1 ) 2 ≤ 8 ⟹ x − 1 ≤ 8 ⟹ x ≤ 8 + 1 ≈ 3 . 8 2 8 4 ⟹ x ≤ 3 .
x can be 0 , 3 , 4 , 7 Part of this problem involves the methods of generating a p r i m i t i v e Pythagorean triple. Secondly, keep in mind that x and y are non negative integers; 0 will work.
Problem Loading...
Note Loading...
Set Loading...
Suppose x ≥ y for now. Then x 2 + y 2 ( x y − 7 ) 2 x y − 7 x ≤ 2 x 2 ≤ 2 x 2 ≤ x 2 ≤ y − 2 7 Now if y ≥ 4 this gives x ≤ 4 − 2 7 < 4 , which is a contradiction, so we only have to check y = 0 , 1 , 2 , 3 .
For y = 0 we get x = 7 . For y = 1 we get x = 2 4 / 7 , not an integer. For y = 2 we get 3 x 2 − 2 8 x + 4 5 = 0 , and it's easy to check that the solutions are not integers. For y = 3 we get 8 x 2 − 4 2 x + 4 0 = 0 , which factors as 2 ( 4 x − 5 ) ( x − 4 ) = 0 . So x = 4 is the unique integer solution in that case.
Hence there are two solutions with x ≥ y , ( 7 , 0 ) and ( 4 , 3 ) . The equation is symmetric, so there are four solutions in all, ( 7 , 0 ) , ( 4 , 3 ) , ( 3 , 4 ) , ( 0 , 7 ) . The sum of the x -values is 1 4 .