For what integral values of $a$ does the equation $$x^2-x(1-a) - (a+2)=0$$ have integral roots?
I have tried making the discriminant to be a perfect square; but when it becomes perfect square, $a$ itself is not an integer.
For what integral values of $a$ does the equation $$x^2-x(1-a) - (a+2)=0$$ have integral roots?
I have tried making the discriminant to be a perfect square; but when it becomes perfect square, $a$ itself is not an integer.
The discriminat of this quadratic equation $$(1-a)^2+4(a+2) = a^2+2a+9$$ must be a perfect square.
So $$(a+1)^2+8 = b^2\implies \boxed{(b-a-1)(b+a+1)=8}$$