Problem

Source: Iran TST 2006

Tags: number theory, least common multiple, function, number theory proposed



Suppose that $p$ is a prime number. Find all natural numbers $n$ such that $p|\varphi(n)$ and for all $a$ such that $(a,n)=1$ we have \[ n|a^{\frac{\varphi(n)}{p}}-1 \]