Find all pairs of primes for which and are both perfect squares.
Solution
Since is a perfect square and is prime, we should have for some positive integer . Let . Therefore, , and substituting that into the and solving for gives Notice that we also have and so . We run through the cases
: Then so , which works. : This means , so , a contradiction. : This means that . Since can be split up into two factors such that and , we get
and each factor is greater than , contradicting the primality of .
Thus, the only solution 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.