If $p+q=198$ find the integer solution of the equation $x^2+px+q=0$
My attempt:
Suppose the integer roots are $\alpha,\beta$ then we have $$\alpha+\beta=-p$$ and $$\alpha\beta=q$$ Also, $$p^2-4q\ge0$$ The first two equations imply that both $p$ and $q$ are also integers. Now we have to find $p$ and $q$ such that, $p+q=198$ and $p^2-4q\ge0$
I don't know how to solve these equations. I haven't learnt linear programming yet. I also found out that the inequality is strict i.e. $$p^2-4q>0$$ as if $p^2-4q=0$ then we'll not get integer $p$ and $q$ after solving.