I'm trying to prove that if $x$ divides $2^a$ for some integer $a \geq 0$, then $x = 2^b$, where $a \geq b$. In other words, if $x$ divides a power of 2, then $x$ is a power of 2. This makes sense, since the all the factors of a power of 2 are also powers of 2, e.g. the factors of 256 are 1, 2, 4, 8, 16, 32, 64, 128, 256. But I'm not so sure how to word this in a rigorous fashion.
A related question: Does this extend to powers of any integer, instead of just 2? If $x$ divides $k^a$, does $x = k^b$?