How can I find all natural numbers $a$ and $b$ so that the roots of the equation $x^2-abx+a+b$ are integer? ($x$ is a variable)
The first idea that came into my mind was to find the solutions of the equation. They are: $x = \frac{ab - \sqrt{a^2 b^2 - 4a - 4b}}{2}; x = \frac{ab + \sqrt{a^2 b^2 - 4a - 4b}}{2}$
What is possible to be done next?