Search HoldMyTwist

Browse all posts

Episode 7

Four Lanterns for Number Eleven

The parade gate is calling number eleven. There are four little signal lanterns on Robot's desk.

Episodes

Computing Basics

    Duck holds a ticket marked 11 inside the monitor. Robot studies four unlit lamps on a single base.
    Robot points at the leftmost brass plate, 8. The other places are 4, 2, 1; all four lamps are off.
    Robot turns on the leftmost lamp, marked 8. The other three lamps remain dark; Duck asks whether one lit lamp means one.
    Robot points directly at the plate marked 8 under the only lit lamp.
    Duck holds ticket 11 and looks worried. Only the 8-place lamp is on, so three more are needed.
    Robot hovers over the dark 4-place switch without turning it on. The 8-place stays on. A tentative calculation shows 8 + 4 = 12.
    Robot turns on the 2-place lamp. The 8 and 2 lamps glow, while 4 and 1 remain dark, making 10. Duck celebrates.
    Robot pauses before the dark rightmost lamp and asks which lamp would make eleven. The lit 8 and 2 still total 10.
    Duck points right inside the monitor. Robot reaches toward the dark 1-place switch; the lamps still show 1010, total 10.
    Robot turns on the rightmost 1-place lamp. The 8, 2 and 1 lamps now glow, while 4 stays off: 1011 = 11.
    Duck celebrates three glowing lamps. Their place values 8 + 2 + 1 add to eleven, despite only three lamps being on.
    The gate opens behind Duck inside the monitor. The lamps still show 1011 = 11 while Duck asks for a fresh number, 6.
    A silent thinking beat: Duck holds ticket 6 while Robot studies the four lamps, reset to all off.
    Robot plans six as four plus two, pointing between the middle places. All lamps are still off before the switches are changed.
    The middle lamps marked 4 and 2 glow, while the outer 8 and 1 remain off. Duck celebrates: 0110 = 6.
    Seen from behind Robot, all four lamps are off. Their contribution is zero: 0000 = 0.
    A silent discovery: all four lamps glow. The labeled places 8, 4, 2, 1 total fifteen.
    Robot gestures at all four glowing lamps and explains the maximum: 1111 = 15.
    Duck holds ticket 16 inside the monitor, while all four existing places remain on and total only fifteen.
    Robot wrestles with an unconnected spare lamp on its own base to the LEFT of the four glowing lamps. Plates now read 16, then 8, 4, 2, 1. Duck laughs inside the monitor.

    Episode transcript

    Eleven for the parade gate

    The parade gate is calling number eleven. There are four little signal lanterns on Robot's desk. Duck is holding ticket 11 in the monitor.

    Duck: Can the four lamps speak eleven?

    The static labels from left to right are 8, 4, 2, 1.

    LEFT → RIGHT: 8, 4, 2, 1. ON = 1. OFF = 0.

    Robot: Each place has its own value

    1000 → 8

    Duck: One lamp on. Is that one?

    The total is 8 on the display.

    8 + 0 + 0 + 0 = 8

    Robot: This place adds eight.

    Choose the weighted places

    Duck: We need three more.

    Separate trial sum shows 8+4=12.

    TRIAL: 8 + 4 = 12 > 11. KEEP 4 OFF

    Robot: Four would get us over eleven.

    1010 → 8 + 2 = 10

    Duck: One more!

    8 AND 2 ON. 4 AND 1 OFF. TARGET 11

    The gate opens

    Duck points at the farthest to the right 1 lamp, but does not turn it on.

    Duck: the one on the right

    Robot turns on the 1 lamp.

    1011 → 8 + 2 + 1 = 11

    Robot: eight plus two plus one.

    3 ON LAMPS. REPRESENTED VALUE: 11

    Duck: 3 lights that are on, but 11 total!

    The parade gate will open from correct 11 signal in monitor scene.

    A new target

    Duck has new ticket 6. Robot turns all 4 lamps off.

    TARGET 6. RESET: 0000

    6 = 4 + 2

    Robot: Six is four plus two.

    0110 → 0 + 4 + 2 + 0 = 6

    Duck: Those two are enough.

    0000 → 0

    Robot: All off is zero

    The four-place limit

    1111 → 8 + 4 + 2 + 1 = 15

    Robot: Fifteen. Everything is already on.

    TARGET 16. FOUR-PLACE MAXIMUM: 15

    Duck: So we need to add another spot for 16.

    Robot: We might need to get a bigger desk.

    Binary place values

    Each lamp is 1-bit. A bit can be either 0 or 1 (off or on). You can encode digital information as those two states.

    When you use unsigned binary, the values double with each step to the left

    MOVING LEFT: 1 → 2 → 4 → 8 → 16. FOUR INDEPENDENT BITS: 2 × 2 × 2 × 2 = 16 PATTERNS

    With 4 places that each can be on or off you have 16 unique values (all the whole numbers from 0 to 15). If you added another lamp it would be another place (worth 16).

    LEFT → RIGHT: 8, 4, 2, 1

    When you have a 1 you add the value of the place you are in. If you have a 0 it adds nothing. 1011 is adding 8 + 0 + 2 + 1 = 11. The number of 1's is not the number it represents. It is just the number of lit lamps you have which is 3.

    FOUR UNSIGNED PLACES: 0000 = 0 THROUGH 1111 = 15

    Try nine

    SAME PLACES: 8, 4, 2, 1. START WITH ALL OFF.

    Answer

    1001 → 8 + 0 + 0 + 1 = 9

    Code is now 1001, summing to 9. Once values add up to the target, stop. Changing order of place labels changes meaning of shown code.

    Sources

    Computer Science Field Guide, Numbers: representing whole numbers in binary (opens in a new tab)