Given the congruence $x^3 \equiv a$ (mod p), where $p \geq 5$ is a prime and gcd($a,p$)=1, prove the following
a. If $p \equiv 1$ (mod 6), then the congruence has either no solutions or three incongruent solutions modulo p.
b.If $p \equiv 5$ (mod 6), then the congruence has a unique solution modulo p.
How to solve it...by using the theory of indices.