Find all positive integer pairs such that is an integer.
Solution
We need to find all positive integer pairs such that is an integer.
First, observe that for to be an integer, must be divisible by .
Consider the smallest prime divisor of . We have:
This implies:
Let . Then:
By Fermat's Little Theorem, we know:
Since , it follows that:
Given that is the smallest prime divisor of , we have . Therefore:
This implies:
which simplifies to:
Thus:
which is a contradiction unless .
Therefore, the only solution is when . In this case, , which is always an integer for any positive integer .
Hence, the solution is:
for any positive integer .
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.