If p is prime, then there exists $d < p$ such that $d^{p-1} \equiv 1 \pmod p$, or equivalently, $p|d^{p-1}-1$?
Also, if possible, prove that at the same time,$d^{p-1} \not\equiv 1 \pmod p$ must not hold for any $v<p-1$.
I am not sure if it is true. But if the function group $\operatorname{Aut}(\mathbb{Z}_p)$ of the automorphism of $\mathbb{Z}_p$ under function composition is homomorphic to the group $\mathbb{Z}_{p-1}$, where $\mathbb{Z}_p$ is the group of integers modulo $p$ under addition, then my assumptions above should be true.