You'll see certain powers of 2 again and again in programming. Memorize these:
28=256, 210=1024, 216=65536, 220≈106, 230≈109, 232≈4×109.
Why do these matter? 231−1=2147483647 is the max signed 32-bit integer. 263−1 is the max signed 64-bit integer. When a problem says n≤109, you know it fits in 32 bits. When n≤1018, you need 64 bits.
Also useful: 103≈210. This shortcut converts between powers of 10 and powers of 2 quickly.