Skip to content
Your progress

Checking your sign-in…

Who's learning?

Each profile keeps its own read lessons, badges, streak, and practice scores on this device.

Lesson 2 of 8

Add a switch, double the patterns

Show on a big screen

5 min

Text size

Two switches can be set in how many ways? Not three. Four. A pattern is one full setting of all the switches, in order.

One switch: down, or up. 2 patterns.
Step 1 of 3
  1. One switch: down, or up. 2 patterns.
  2. Add a switch. 4 patterns.
  3. Add another switch. 8 patterns.

Each new switch doubles the list of patterns. One copy gets a down in front. The other gets an up. Together, the two copies are the new list.

Patterns for each number of switches
Switches in a rowPatterns you can set them to
12
24
38
416
532

How many switches can label 12 months? Three switches give 8. That is too few. Four give 16. Four are enough.

Six switches give 64, seven give 128 and eight give 256. Eight switches kept together are a byte. A byte gives 256 patterns.

Slide to add a switch. Watch the rows double.

Loading lab…

Try the lab to finish this lesson.