The original problem has been discussed here, which involves a necklace of $p$ beads each of which can be one of $a$ colors and shows that $a^p - a$ must be a multiple of $p$ by classifying the necklaces which are cyclic permutations of each other as indistinguishable and a necklace of length $p$ has $p$ cyclic permutations leading to $\frac{a^p - a}{p}$ distinct necklaces. Please see the original posting for details.
Follow-up question: Since there are $a!$ ways to permute the $a$ colors, is $\frac{a^p - a}{p}$ divisible by $a!$ ?
Clarification: We should assume $a < p$ if not use $a \bmod p$. This will lead to such necklaces where all $a$ colors used.