Find all pairs of positive integers for which is a perfect square.
, 2011
Solution
If both and are greater than one, then , which is not a perfect square. So at least one of and has to be exactly .
* If , then we want to be a square. This has a solution only for . If the expression will be divisible by and not , so it cannot be a square.
* If , then we want to be a square. Considering this expression mod , we have , which will be or (mod ). However, perfect squares are only , , or (mod ), so there are no solutions.
So the unique solution to the problem is .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.