Problem:
Find all four-digit positive integers less than for which there exists a positive integer , such that is a perfect square and has at most three distinct positive divisors.
Solution
Solution:
The number has at most three different positive divisors if and only if , where is a prime and . If then and is a perfect square, which is impossible.
Let , , where and is a positive integer. Then
Therefore and , where and are integers, such that and .
For we have the unique possibility , . Hence
Taking into account that we obtain the solutions , , , and (for and , respectively).
For we have or . In the first case we get
Now the inequalities imply that which is not a prime. In the second case we have , which gives the solutions and (for and , respectively).
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.