Candies' logic quadratic problem

Algebra Level 2

Cody gets x x candies and Jack gets y y candies. If x = a y 2 + a y 11 x=ay^2+ay-11 , and a x 2 + a x 2 = 0 ax^2+ax-2=0 , find the value of y y .

Take a , x , y a, x, y as real integers.


The answer is 3.

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.

2 solutions

Hung Woei Neoh
May 11, 2016

Now, x x and y y represents candies, therefore x , y 0 x,\;y \geq 0

a x 2 + a x 2 = 0 x 2 + x 2 a = 0 ax^2 + ax - 2 = 0\\ x^2 + x - \dfrac{2}{a} = 0

Now, we proceed to find the value of x x :

x = 1 ± 1 2 4 ( 1 ) ( 2 a ) 2 ( 1 ) = 1 ± 1 + 8 a 2 x = \dfrac{-1 \pm \sqrt{1^2 - 4(1)(-\frac{2}{a})}}{2(1)}\\ = \dfrac{-1 \pm \sqrt{1 +\frac{8}{a}}}{2}

Now, for real integers of x x , we know that

1 + 8 a 0 1 + 8 a 0 1 + 8 a 0 1 1 + 8 a 2 < 0 1 + \dfrac{8}{a} \geq 0\\ \sqrt{1 +\dfrac{8}{a}} \geq 0\\ -\sqrt{1 +\dfrac{8}{a}} \leq 0\\ \dfrac{-1 - \sqrt{1 +\frac{8}{a}}}{2} < 0

The equation will have one negative root, therefore, the other root must be positive:

1 + 1 + 8 a 2 0 1 + 1 + 8 a 0 1 + 8 a 1 1 + 8 a 1 8 a 0 a > 0 \dfrac{-1 + \sqrt{1 +\frac{8}{a}}}{2} \geq 0\\ -1 + \sqrt{1 +\dfrac{8}{a}} \geq 0\\ \sqrt{1 +\dfrac{8}{a}} \geq 1\\ 1 +\dfrac{8}{a} \geq 1\\ \dfrac{8}{a} \geq 0\\ a>0

a a is also a positive integer.

Now, we want x x to be an integer, therefore

1 + 8 a \sqrt{1 +\dfrac{8}{a}} must be an integer, which means

1 + 8 a 1 +\dfrac{8}{a} is a perfect square (which is also an integer)

For 1 + 8 a 1 +\dfrac{8}{a} to be an integer, a a can only take factors of 8 8 , therefore

a = 1 , 2 , 4 , 8 a=1,\;2,\;4,\;8

From these 4 values, only one value of a a gives a perfect square: a = 1 a=1

Then, x = 1 + 1 + 8 1 2 = 1 + 9 2 = 3 1 2 = 1 x = \dfrac{-1 + \sqrt{1 +\frac{8}{1}}}{2} =\dfrac{-1 + \sqrt{9}}{2} = \dfrac{3-1}{2} = 1

a = 1 , x = 1 a=1,\;x=1 . Substitute both of these into the equation x = a y 2 + a y 11 x = ay^2 +ay - 11 :

1 = y 2 + y 11 y 2 + y 12 = 0 ( y + 4 ) ( y 3 ) = 0 y = 4 , 3 1 = y^2 + y - 11\\ y^2 + y - 12 = 0\\ (y+4)(y-3)=0\\ y=-4,\;3

Since y 0 , y = 3 y \geq 0,\; y=\boxed{3}

James Wong
Mar 24, 2016
  • x x and y y can only be integers equal to or larger than 0. As a x 2 + a x 2 = 0 ax^2+ax-2=0 , the largest possible value of x x is 1 1 no matter what value " a a " is, such that 1 2 + 1 2 = 0 1^2+1-2=0 . Hence, we get a = 1 a=1 too.
  • As x = 1 x=1 , a y 2 + a y 11 = 1 ay^2+ay-11=1 . Substituting a=1 and x=1 in the equation, we get y 2 + y 12 = 0 y^2+y-12=0 , where y = 3 y=3 and 4 ( r e j e c t e d ) -4(rejected)
  • So the answer is 3.

How did you come to the conclusion that x = 1 x=1 ? I'm confused. Can you please explain further?

Hung Woei Neoh - 5 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...