Show that $2$ is a primitive root $\mod{3^k}$ for all positive $k$
So in order for $a$ to be a primitive root it would have to satisfy $\text{ord}_{p}a=\phi(p)=p-1$
However here we would have that:
$2$ is a primitive root$\mod{3^k}$ if $\text{ord}_{3^k}2=\phi(3^k)=3^k-1$, but this doesn't work since there's no guarantee that $3^k$ would be prime and therefore satisfy $\phi(p)=p-1$.
I saw a similar problem online where they stated that we would like to find the smallest $m$ such that $2^m \equiv 1 \pmod{3^k}$ however isn't this is just the definition of $\text{ord}_{3^k}(2)$?
Supposing that this is the case I managed to get the following:
If $3^k \vert(2^m-1)$ we would get from Lifting the exponent lemma that $$v_3(2^m-1^m)=v_3(2-1)+v_3(m) = v_3(m) \geqslant k$$
however this didn't lead anywhere also. What should I do here? It seems that I'm a bit confused with the definitions...
Hint: You can proceed as follows :
Let $m=2\times 3^{k-1}$. Notice that the only prime divisors of $m$ are $2$ and $3$.
Step $1$. Show $2^m \equiv 1 \pmod {3^k}$ (by induction on $k$).
Step $2$. Show $2^{\frac{m}{2}} \equiv -1 \pmod {3^k}$.
Step $3$. Show $2^{\frac{m}{3}} \not\equiv 1 \pmod {3^k}$.