Let be a prime number that leaves a remainder of 1 when divided by 6. Set . Prove that is divisible by without any remainder.
Solution
The solution consists of three steps:
1. is divisible by 127.
2. is divisible by .
3. 127 and are coprime.
For 1: It holds that . From it follows that , thus . With it follows that .
For 2: It holds that (Fermat's little theorem), i.e., . From it follows that .
For 3: It holds that if and only if is divisible by 7 (write with ). If , this is not the case, so is not divisible by 127, and since 127 is a prime number, 127 and are coprime.
Remarks: The relationship allows for a shortening of the solution. Instead of congruence arithmetic, the divisibility statement can be used in some cases. Some participants used an incorrect version of the Euler-Fermat theorem: it states for , but only for a prime number does hold.
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.