In Dummit & Foote's Abstract Algebra (2nd ed.), Corollary 20(2) states the following:
$(\mathbb{Z}/2^n\mathbb{Z})^\times$ is the direct product of a cyclic group of order 2 and a cyclic group of order $2^{n-2}$, for all $n\geq2$.
For the proof, it says "it directly follows from Exercises 22 and 23 of Section 2.3." From these exercises, I learned that $5$ is an element of order $2^{n-2}$ in $(\mathbb{Z}/2^n\mathbb{Z})^\times$ for $n\geq2$, and that $(\mathbb{Z}/2^n\mathbb{Z})^\times$ is not cyclic for $n\geq3$. But I don't see how these imply that $(\mathbb{Z}/2^n\mathbb{Z})^\times$ is a product of two cyclic groups of order 2 and $2^{n-2}$.