# For some integers a and b, the same integer satisfies both of the equations, what is the greatest possible value?

For some integers $a$ and $b$, the same integer satisfies both of the equations $$x^2 - ax + 2014 = 0$$ and $$x^2 - bx + 2015 = 0.$$ What is the greatest possible value of this common solution?

• where did you stuck? – MAN-MADE Aug 16 '17 at 4:41
• Please add a bit of context to your Question. What brought the problem to your attention? What have you tried? Is it an exercise that followed the Rational Roots Test or some other study material? – hardmath Aug 16 '17 at 4:42
• Hint: So $x$ satisfies both those equations. Therefore it satisfies the difference of those two equations, eliminating the quadratic term and allowing you to conclude that... – Jyrki Lahtonen Aug 16 '17 at 6:43
• @JyrkiLahtonen I figured it out using this hint and I understood it better than the answer given. Thank you! – Jeff Aug 17 '17 at 2:32

Let $x_1$ and $x_2$ be roots of the first equation and $x_1$ and $x_3$ be roots of the second.
Thus, $x_1x_2=2014$ and $x_1x_3=2015$, which gives $2014$ and $2015$ divided by $x_1$,
which gives $x_1=1$ or $x_1=-1$, which gives the answer: $1$.