I was doing number theory in Algebra and I came across the following example:
$$\operatorname{ord}_{2^k}(5)= \frac{\varphi(2^k)}{2} = 2^{k-2}$$
I don't understand why that is. There are no limitations set on $k$, but I suppose it doesn't bring much to consider $k<2$.
Thanks in advance!
Edit: The group in question is $(\mathbb{Z}/2^k\mathbb{Z})^*$.
Edit: As J.W.Tanner mentioned in the comment below, this works only for $k>1$. I would still like to know why.