Find the total number of integral values of a such that $x^2+ax+a+1=0$ has integral roots.
Solution : Finding the discriminant of the question D = $b^2-4ac = a^2-4(a+1)$
= $(a-2)^2-8 $ Let this be equal to $t^2 : \Rightarrow (a-2)^2-8 =t^2 \Rightarrow (a-2)^2-t^2=8 \Rightarrow (a-2-t)(a-2+t)= 8 $
Now how to proceed further in this please guide...