Lamps that count: press puzzles for kids
Some lamps change at every press of a button: off becomes on, and on becomes off. Count the presses to see if the lamp ends on, and find how many presses it takes to look like the start again. Try it:
Count the presses: does the lamp end on or off, and which of two lamps is on?
This lamp changes at every press of its button: off becomes on, and on becomes off. Each blue dot is one press. Is the lamp on or off after all the presses?
How it works
A lamp that changes at every press remembers one thing: on or off. Two presses bring it back to where it started, so an even number of presses changes nothing and an odd number changes it.
Put two such lamps together, the second changing only when the first goes off, and they count: off off, on off, off on, on on, then back to the start. Two lamps make 4 patterns before they repeat, three lamps make 8.
Computers count the same way, with tiny switches called flip-flops that change at every tick of a clock.
A puzzle with the answer
Lamp A changes at every press. Lamp B changes only when lamp A goes from on to off. Each lamp is drawn as it starts, and the blue dots are the presses. Which lamps are on after all the presses?
Answer: Only B is on. Only lamp B ends on.
Show the working
- Lamp A changes at every press, and lamp B changes each time lamp A goes off.
- Go press by press: press 1: A on, B off; press 2: A off, B on.
- So only lamp B is on. Answer: Only B is on.
Remember: Lamp B changes only when lamp A goes off, so A changes twice for every change of B.
Questions
What is a flip-flop?
A tiny electronic switch that remembers on or off. It can change only when a clock ticks, so many of them together can count, store numbers and keep time.
How does a digital watch count seconds?
A tiny crystal shakes 32,768 times a second. A row of 15 flip-flops halves that again and again until it ticks exactly once a second.