Problem:
Find the smallest prime for which there exists an integer such that divides .
Solution
Solution:
The answer is . To see this works, take ; by Fermat's little theorem, is divisible by .
Now suppose . We consider two cases:
- If , then
which forces .
- Otherwise, since is prime, it follows has order modulo . So . The smallest prime which obeys this 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.