Find all integers , such that the equation has only integer solutions.
Slovenia — National Math Olympiad
Solution
Let and be the integer solutions of this quadratic equation. We may assume that . By Viete's formulas we have and . Adding both identities together we get , so
Since , we have four possible cases to consider. In the first case we have , , in the second case , , in the third case , and in the final case , . Using the identity we see that is equal to or .
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.