I wish to find all cubic residues modulo $9$, i.e., all invertible classes $A$ modulo $9$ such that the congruence $X^3 \equiv_{9} A$ is solvable. I have so far determined that the invertible classes are $1, 2, 4, 5, 7, 8$. How do I now best determine those invertible classes for which the congruence is solvable and eliminate those for which it is not?
Evidently, one can just represent any number as $9k+r$, $0 ≤ r < 9$ which, on cubing, gives $729k^3 + 243k^2r+ 27kr^2 + r^3 \equiv_{9} r^3$, and then plug every allowable number for $r$ and obtain its residue..., but I am hoping to find a more efficient way.