Skip to main content
OlympiadHQ

Browse · MathNet

Print

Baltic Way shortlist

Baltic Way number theory

Problem

Let be an integer, such that is a prime number. Prove that divides .
Solution
Since is a prime number, each non-zero remainder modulo possesses a unique multiplicative inverse. Since , we have , from which we deduce that . Consequently, by Fermat's Little Theorem.

Techniques

Fermat / Euler / Wilson theoremsInverses mod n