Math Fundamentals18 sections · 814 units
Open in Course

Powers of Two Reference

Memorize these

Memorizing powers of 2 will speed up your binary conversions and help you recognize patterns in code. Here are the first 16:

20=12^0 = 1, 21=22^1 = 2, 22=42^2 = 4, 23=82^3 = 8, 24=162^4 = 16, 25=322^5 = 32, 26=642^6 = 64, 27=1282^7 = 128, 28=2562^8 = 256, 29=5122^9 = 512, 210=10242^{10} = 1024, 211=20482^{11} = 2048, 212=40962^{12} = 4096, 213=81922^{13} = 8192, 214=163842^{14} = 16384, 215=327682^{15} = 32768.

Notice 21010002^{10} \approx 1000 (actually 1024). So 22012^{20} \approx 1 million, 23012^{30} \approx 1 billion. These approximations help you estimate algorithm runtimes and memory usage.