Tutorpip← About this lessonOpen the sheet →Download PDF
Ages 8+ · Coding · How computers work
Binary: on and off
💡on = 1⚫off = 0
One lamp has two states.
The big ideaBinary has two states, on and off. Patterns of them can stand for anything.

How it works

Binary has two states, on and off. On is written as one, and off is written as zero.

One lamp can make two patterns. Every new lamp doubles the number of patterns.

Patterns can stand for anything, like the letters of the alphabet. Five lamps make 32 patterns, which is plenty for 26 letters.

Computers work the same way, with tiny switches that are on or off. Letters, numbers, pictures and music are all patterns of ones and zeros.

01020304021 lamp42 lamps83 lamps164 lamps325 lampspatterns
Patterns for each number of lamps.

Example 1: Writing a pattern

  1. Lamp 1 is on, lamp 2 is off and lamp 3 is on.
  2. On is 1 and off is 0.
  3. The pattern is written 101.

Example 2: Doubling

  1. One lamp makes 2 patterns.
  2. A second lamp doubles it: 2 × 2 = 4. A third doubles it again: 4 × 2 = 8.
  3. Four lamps make 8 × 2 = 16 patterns, and five lamps make 16 × 2 = 32.

Example 3: Two lamps

  1. Two lamps make four patterns: both off, the first on, the second on, and both on.
  2. Written with ones and zeros: 00, 10, 01 and 11.
  3. Each pattern can mean something different.

Example 4: How many lamps for the alphabet

  1. The alphabet has 26 letters, so Mina needs 26 patterns.
  2. Four lamps make only 16 patterns, which is not enough.
  3. Five lamps make 32 patterns, which is plenty for every letter.

Words to know

binary
Two states, on and off, written as one and zero.
pattern
A row of ons and offs, such as 101.
switch
Something that is on or off. Computers have tiny ones.

Watch out

Try it

  1. On, off, on is written in ones and zeros as what?
  2. How many patterns can three lamps make?
  3. Is a light switch binary, or a volume dial with many settings?
  4. How many patterns do four lamps make?
  5. Are five lamps enough for the 26 letters?
Answers: 1. 101 · 2. 8 · 3. A light switch · 4. 16 · 5. Yes
Try at homeWith a grown-up, flip a coin three times and write down heads or tails each time. That is a pattern. Can you find all eight patterns? Pick one pattern to mean a word, like yes, and send it to each other by showing the coin.
For grown-upsDo the Mission: flip a coin three times and write heads or tails each time. That is a pattern. See if you can find all eight patterns, and pick one to mean a word such as yes, then send it to each other by showing the coin.
Open these notes on screenScan the code, or go to tutorpip.com.