Skip to main content
OlympiadHQ

Browse · MathNet

Print

Silk Road Mathematics Competition

number theory

Problem

Let be an integer. Prove that if and only if, for each prime factor of
Solution
For simplicity let's enumerate the statements. (1) is divisible by (2) divisible by and divisible by Let . Firstly, observe that The first case is clear, it follows from Fermat's little theorem. And the second can be shown, for instance, as follows: let be a primitive root by modulo , then and implies that . Suppose that (1) holds. Then either divisible by and divisible by , or divisible by and divisible by . Therefore, divisible by and divisible by . Hence, divisible by divisible by , we obtain (2). Now suppose that (2) holds. divisible by is not divisible by , so is squarefree. divisible by divisible by divisible by . Therefore, since divisible by . Because this holds for every prime divisor of , and is squarefree, using the Chinese Remainder Theorem, we obtain (1).

Techniques

Fermat / Euler / Wilson theoremsChinese remainder theoremPrimitive roots mod p / p^nPrime numbers