Skip to main content
OlympiadHQ

Browse · MathNet

Print

Balkan Mathematical Olympiad Shortlist

number theory

Problem

Let be a prime number and be integers. Show that if for all positive integers then .
Solution
Letting , we have or . Therefore, the congruence is true when either all are divisible by or no is divisible by .

On the other hand, if no is divisible by we have Hence, satisfy the condition, so, all are congruent modulo .

Techniques

Fermat / Euler / Wilson theoremsPolynomials mod pPolynomial operations