One can see that $$\mathbb{Z}/19\mathbb{Z}=\{[0],[1],\ldots,[18]\}=\{[0],[3^1],[3^2],\ldots,[3^{18}]\}.$$ If I have $\mathbb{Z}/p\mathbb{Z}$, $p>2$ prime, when is there a $k\in\{2,3,\ldots,p-1\}$ such that $[k ^n]$ and $[0]$ recover $\mathbb{Z}/p\mathbb{Z}$? Further, when is there a prime $k$?
I'm a little removed from my last algebra course, but this interested me and I couldn't come up with a solution offhand.
Edit: nonessential to answer, but appreciated: Regarding when $k$ is prime, are there any partial results for any special classes of primes $p$?