Powers of Two
Lesson 3 of 46 in Coddy's IP Addressing and Subnetting course.
Subnetting keeps asking one question: how many combinations do n bits give? The answer is always a power of two. One bit gives 2 values, two bits give 4, three give 8, and each extra bit doubles the count.
The eight place values of a byte are exactly the powers 27 down to 20: 128 64 32 16 8 4 2 1. Say them until they feel like a phone number you know by heart. Every mask, block size, and host count in this course comes from this row.
Challenge
BeginnerPrint the eight place values of a byte, highest first, on a single line separated by single spaces.
Expected output:
128 64 32 16 8 4 2 1Try it yourself
All lessons in IP Addressing and Subnetting
10Capstone - The Office
The Floor PlanSizing Each TeamCarving the BlockThe Router's ViewRecap - Ship the PlanPractice on your own: Terminal playground