Let $p$ be a prime number and let $d$ be a divisor of $(p-1)$. Look at $a^d \bmod p$ for every $a \in \{1,2,\dots, (p-1)\}$. What numbers do you get, and how frequently do they occur? Formulate a general rule, and prove that it holds for all prime numbers $p$, all $d \mid (p-1)$ and all integers $a \in \{1,2,\dots, (p-1)\}$.
I tried for a few different values of $p$, and found that we will get $\frac{p-1}{d}$ different solutions to $a^d \bmod p$, with a frequency of $d$ for each number. For example, for $p = 11$, $a \in \{1,2,\dots,9,10\}$ and $d = 1,2,5$ or $10$ we have
\begin{align*} &a^1 \bmod p = a \\ &a^2 \bmod p = \begin{cases} 1 \\ 4 \\ 9 \\ 5 \\ 3 \end{cases} \\ &a^{5} \bmod p = \begin{cases} 1 \\ 10 \\ \end{cases} \\ &a^{10} \bmod p = 1 \end{align*}
I'm just struggling to see how I can prove this in general. I know that the following is true for all $p$ and all $a \in \{1,2,\dots,(p-1)\}$: \begin{align*} &a^1 \bmod p = a \\ &a^{p-1} \bmod p = 1 \end{align*} But what about the values of $a^d \bmod p$ for all other $d$? How can I say something in general about those?