EngineerPlay

Code lamps: puzzles for kids

Computers keep everything as rows of tiny lamps that are on or off. Count the lit lamps, spot the rule that changes one row into the next, and use a check lamp to catch a lamp that went wrong.

Count the lamps that are lit in a row.

How many lamps in the row are lit?

A row of 8 code lamps, some lit and some darkA picture with no text labels; the question text says what to look at.

How it works

A row of lamps can carry a message: each lamp is either on or off. Computers use rows like this for every number and letter.

To find the next row in a pattern, look at what changes from one row to the next: a lamp that moves along, one more lamp that lights, or two rows taking turns. Then do the same change once more.

A check lamp helps to catch mistakes. It is switched on when that makes the number of lit lamps even. If a lamp flips on the way, the count turns odd and you know something went wrong.

A puzzle with the answer

The lamp rows 1 to 4 follow a rule. Which row, A, B or C, comes next?

Four rows of lamps that follow a rule, and three rows to choose fromLabels shown, in drawing order: 1, 2, 3, 4, ?, A, B, C.1234?ABC
Show the working
  1. The rows take turns: the first pattern, then the second, then the first again.
  2. So the next row looks just like row 1.
  3. Find that row among the answers. Answer: B.

Remember: Find what changes from one row to the next, then do that change once more.

Questions

How do you know if a number is odd or even?

Pair things up two by two. If one is left over without a partner, the number is odd; if every one has a partner, it is even.

What is a check lamp for?

It makes the number of lit lamps even. If one lamp flips by mistake, the count becomes odd, so the mistake shows up straight away.