Let $p$ be a prime of the form $p=2^k+1$.
- Prove that $\mathbb{Z}_p$ has $2^{k-1}$ primitive roots.
- Let $g_0$ be a primitive root. Which powers of $g_0$ are primitive roots? Prove!
Since $p$ is a prime, then the order of the cyclic group $\mathbb{Z}_p$ is going to be $$\phi(p)=\phi(2^k+1)=2^k+1-1=2^k$$
Since $\mathbb{Z}_p$ is a group then there exist an identity element of order 1. We can say that there are $p-1$ elements whose order we do not know.
How do I continue with the proof?
Hints:
Consider any element $g_0$ of order $2^k$ so : $$ \mathbb{Z_p^*}=\{1,g_0,\cdots,g_0^{2^k-1} \}$$ The elements of the form $g_0^i$ with $i$ is odd and $0\leq i\leq 2^k$ are primitive roots, when $i$ is even you can prove that $g_0^i$ is not a primitive root.
Conclude that there are exactly $2^{k-1}$ primitive roots.