How many solutions does $x^{p+1} \equiv 1 \mod p^{2017}$ have in set $\left\{0,1,...,p^{2017}-1 \right\}$?
$p$ is prime > 2.
My observations
$1$ is one of solutions of given equation.
$p$ is prime so:
$$x^{p-1} \equiv 1 \mod p $$
$$x^{p+1} \equiv x^2 \mod p $$
but I have problem with increase power of $p$ to $2017$ without breaking the rest... I know that I can do:
$$x^{p+1} p^{2016} \equiv x^2 p^{2016} \mod p^{2017} $$ and due to this is group I can say that there is one element such that $$p^{2016} \cdot t \equiv 1 \mod p^{2017} $$ but after multiplication from both side I get starting equation...
Use http://mathworld.wolfram.com/DiscreteLogarithm.html
$(p+1)\cdot$ind$_gx\equiv\phi(p^n)$
where $g$ is one of the primitive roots of $p^n,n\ge1$
Use https://proofwiki.org/wiki/Solution_of_Linear_Congruence to find the number of solutions to be
$(p+1,p^{n-1}(p-1))=(p+1,p-1)=2$ for odd $p$