Problem

Source: IMO Shortlist 1993, India 5

Tags: modular arithmetic, number theory, Divisibility, prime numbers, composite numbers, IMO Shortlist



A natural number $n$ is said to have the property $P,$ if, for all $a, n^2$ divides $a^n - 1$ whenever $n$ divides $a^n - 1.$ a.) Show that every prime number $n$ has property $P.$ b.) Show that there are infinitely many composite numbers $n$ that possess property $P.$