The powers of 2 run 2⁰ = 1, 2¹ = 2, 2² = 4, 2³ = 8, each one double the last. They appear everywhere in digital logic:
- they're the place weights of binary
- n bits make 2ⁿ patterns, so they set every range
- memory sizes come in powers of 2, because n address bits reach 2ⁿ locations
Worth knowing by heart:
- 2⁰ = 1, 2¹ = 2, 2² = 4, 2³ = 8
- 2⁴ = 16, 2⁵ = 32, 2⁶ = 64, 2⁷ = 128
- 2⁸ = 256, 2⁹ = 512, 2¹⁰ = 1024
- 2¹⁶ = 65,536
A handy landmark: 2¹⁰ = 1024 is about a thousand, so 2²⁰ is about a million.
One property explains a lot: each power is one more than all the smaller powers combined. 1 + 2 + 4 + 8 = 15 = 16 − 1. That's why 1111 is one less than 10000, why the largest n-bit unsigned value is 2ⁿ − 1, and why subtracting the largest power first always works.
In binary, a power of 2 is a single 1 followed by zeros: 2⁵ = 100000.