Cody gets x candies and Jack gets y candies. If x = a y 2 + a y − 1 1 , and a x 2 + a x − 2 = 0 , find the value of y .
Take a , x , y as real integers.
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.
How did you come to the conclusion that x = 1 ? I'm confused. Can you please explain further?
Problem Loading...
Note Loading...
Set Loading...
Now, x and y represents candies, therefore x , y ≥ 0
a x 2 + a x − 2 = 0 x 2 + x − a 2 = 0
Now, we proceed to find the value of x :
x = 2 ( 1 ) − 1 ± 1 2 − 4 ( 1 ) ( − a 2 ) = 2 − 1 ± 1 + a 8
Now, for real integers of x , we know that
1 + a 8 ≥ 0 1 + a 8 ≥ 0 − 1 + a 8 ≤ 0 2 − 1 − 1 + a 8 < 0
The equation will have one negative root, therefore, the other root must be positive:
2 − 1 + 1 + a 8 ≥ 0 − 1 + 1 + a 8 ≥ 0 1 + a 8 ≥ 1 1 + a 8 ≥ 1 a 8 ≥ 0 a > 0
a is also a positive integer.
Now, we want x to be an integer, therefore
1 + a 8 must be an integer, which means
1 + a 8 is a perfect square (which is also an integer)
For 1 + a 8 to be an integer, a can only take factors of 8 , therefore
a = 1 , 2 , 4 , 8
From these 4 values, only one value of a gives a perfect square: a = 1
Then, x = 2 − 1 + 1 + 1 8 = 2 − 1 + 9 = 2 3 − 1 = 1
a = 1 , x = 1 . Substitute both of these into the equation x = a y 2 + a y − 1 1 :
1 = y 2 + y − 1 1 y 2 + y − 1 2 = 0 ( y + 4 ) ( y − 3 ) = 0 y = − 4 , 3
Since y ≥ 0 , y = 3