If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Course: AP®︎/College Computer Science Principles>Unit 1

Lesson 2: Binary numbers

Patterns in binary numbers

Explore patterns in binary numbers, and learn to recognize odd and even numbers or to intuit the largest value that can be represented by a certain number of bits. Odd binary numbers always end in 1, and binary numbers with all 1 digits represent a power of 2 minus 1. Created by Pamela Fox.

Want to join the conversation?

• Why we write 0 in front of the numbers just like
Binary of 3- 0011.
• Lots of people type binary in groups of 4/8 with smaller numbers.
• How will this affect LeBron's legacy?
• Can you make orange juice with a tangerine
• no you crazy human
(1 vote)
• this was 5 mins and it felt like hrs
• octopi, octo-why
• what is the meaning of this binary text?
01001011 01101001 01110011 01101000 01101111 01110010 01100101
• kishore
(1 vote)
• Can some one explain this question to me. I am confused about the equation for solving it.
A bunch of computer scientists take over an island and start their own country. They want the license plates to use binary numbers. There's space for 7 digits on each license plate and the first plate starts at \[0000000\].
How many unique license plates can their country support?
• 7 spots, each with 2 possible answers. 7 to the second power is 49. This is how I solve these problems. I may be wrong, but I think 49 in correct. If anybody else has a different answer, I'll listen.
• Why do you write 0 in front of the numbers?!?!