Mental Model
A number is a power of two if it can be made by multiplying 2 by itself some times, like 2, 4, 8, 16, etc. We can check this by seeing if only one bit is set in its binary form.
Analogy: Imagine you have a row of light switches, and only one switch is turned on at a time. If exactly one switch is on, the number is a power of two. If more or none are on, it is not.
Number: 8 Binary: 1 0 0 0 Only one '1' bit means power of two Number: 10 Binary: 1 0 1 0 More than one '1' bit means NOT power of two
