How many ordered pairs of integers ( x , y ) satisfy the equation x 2 + y 2 = 2 ( x + y ) + x y ?
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.
x 2 + y 2 − 2 x − 2 y − x y = 0 We treat the above equation as a quadratic in terms of x . So, we have, x 2 − ( y + 2 ) x + y 2 − 2 y ⟹ x = 2 y + 2 ± ( y + 2 ) 2 − 4 ( y 2 − 2 y ) = 2 y + 2 ± − 3 y 2 + 1 2 y + 4 Since x is an integer, the discriminant of the quadratic, − 3 y 2 + 1 2 y + 4 is greater that 0 . − 3 y 2 + 1 2 y + 4 > 0 ⟹ 3 y ( y − 4 ) < 4 Since y is an integer that satisfies the above inequality, y ∈ { 0 , 1 , 2 , 3 , 4 }
Checking each of the four cases, the order pairs ( x , y ) are, ( x , y ) ∈ { ( 0 , 0 ) , ( 2 , 0 ) , ( 0 , 2 ) , ( 4 , 2 ) , ( 2 , 4 ) , ( 4 , 4 ) } Therefore, there are 6 order pairs ( x , y ) that satisfy the given equation.
We have
x 2 − x y + y 2 − 2 x − 2 y = x 2 − 2 x y + y 2 + x 2 − 4 x + 4 + y 2 − 4 y + 4 = ( x − y ) 2 + ( x − 2 ) 2 + ( y − 2 ) 2 = 0 8 8
which means that we have ( ( x − y ) 2 , ( x − 2 ) 2 , ( y − 2 ) 2 ) ∈ { ( 0 , 4 , 4 ) , ( 4 , 0 , 4 ) , ( 4 , 4 , 0 ) } (since 0 ≤ ( x − y ) 2 , ( x − 2 ) 2 , ( y − 2 ) 2 ≤ 8 ) and by considering each case, we get that ( x , y ) = ( 0 , 0 ) , ( 4 , 4 ) , ( 2 , 0 ) , ( 2 , 4 ) , ( 0 , 2 ) , ( 4 , 2 ) .
Problem Loading...
Note Loading...
Set Loading...
x 2 + y 2 = 2 ( x + y ) + x y
if both x, y are odd, then left is even but right is odd; if one of x, y is odd and the other is even, then left is odd but right is even. So both x, y must be even.
Let x = 2 u , y = 2 v , then: 4 u 2 + 4 v 2 = 4 ( u + v ) + 4 u v 2 u 2 + 2 v 2 = 2 ( u + v ) + 2 u v ( u − v ) 2 + ( u − 1 ) 2 + ( v − 1 ) 2 = 2
Obviously, one of left 3 terms must be 0 and the other 2 are 1, then we can get 6 solutions for ( u , v ) : ( 0 , 0 ) , ( 2 , 2 ) , ( 1 , 0 ) , ( 1 , 2 ) , ( 0 , 1 ) , ( 2 , 1 )
i. e. for ( x , y ) : ( 0 , 0 ) , ( 4 , 4 ) , ( 2 , 0 ) , ( 2 , 4 ) , ( 0 , 2 ) , ( 4 , 2 )