How can I show that if $p$ is a prime, $\operatorname{gcd}(p,a)=1$ and $\operatorname{ord}_{p}(a)=3$. then $\operatorname{gcd}(p,a+1)=1$.
I know that $\operatorname{ord}_{p}(a)=3$ means that $a^3 \equiv 1 \pmod p$ but how can I use that to proof the assertion?
Note that
$$a^3 \equiv 1 \iff a^3-1 \equiv 0 \iff (a-1)(a^2+a+1)\equiv 0 \pmod p$$
then
$$p|(a-1) \quad \lor \quad p|(a^2+a+1)$$
but
then we have
then if $\gcd(p,a+1)\neq 1$ we had
which is a contradiction.