Find all integral solutions and of the equation
Slovenia — National Math Olympiad
Solution
Rewrite the equation as . Obviously, divides , so divides . Since gives the remainder of when divided by , there are four possibilities. The number is equal to or , so is equal to or and is equal to or respectively. The solutions are and .
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.