Given that and both are integers, find the number of ordered pairs that are solutions to the equation
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 really like this problem and here is my solution.
Since x + y = 0 , then
x 2 − x y + y 2 = x + y
⇒
x 2 − x ( y + 1 ) + y 2 − y = 0
Getting the discriminant of the equation with variable x , we have
( y + 1 ) 2 − 4 ( y 2 − y )
Since we want our x values to be real, the discriminant must be greater than or equal to zero,
⇒
− 3 y 2 + 6 y + 1 ≥ 0
Solving this we get the solution as
3 1 ( 3 − 2 2 ≤ y ≤ 3 1 ( 3 + 2 2 )
or
− 0 . 1 5 4 7 0 1 ≤ y ≤ 2 . 1 5 4 7
Testing integer values for y for the given interval and by doing casework, we find that these are the integer solutions
( 0 , 0 ) , ( 1 , 0 ) , ( 0 , 1 ) , ( 2 , 1 ) , ( 1 , 2 ) , ( 2 , 2 )
In total there are 5 ordered pairs excluding ( 0 , 0 ) .