Problem

Source:

Tags: Divisibility Theory



A natural number $n$ is said to have the property $P$, if whenever $n$ divides $a^{n}-1$ for some integer $a$, $n^2$ also necessarily divides $a^{n}-1$. Show that every prime number $n$ has the property $P$. Show that there are infinitely many composite numbers $n$ that possess the property $P$.