Let $P (x) = ax^2 + bx + c$ where $a,b,c$ are in arithmetic progression and are positive constants. Let $P (x) = 0$ for $t$ and $r$, where $t$ and $r$ are integers. Find $t + r +tr$.
Answer is : $7$
I tried it as follows :
$t + r = -b/a$ ;
$tr = c/a$ ;
$t + r + tr = -b/a + c/a = (c-b)/a = (b-a)/a= b/a - 1$
Therefore,
$2t + 2r + rt = -1$
I could not figure out what to do next. Please help.
c/a = t*r is integer, b/a =-t-r is integer => we can set a = 1;
$x^2 + bx + 2b-1 = 0$ has 2 integer roots
So, $b^2 - 8b + 4$ is a square if integer.
$x^2 = b^2 - 8b + 4 = (b-4)^2-12$
$(b-4-x)(b-4+x)=12$ - now you can check all factorizations of 12 and find possible b and x :)