Station 4Explaining The 1 ← 2 Machine

Let’s start with the machine and make sense of that curious device. Then understanding all the remaining machines will naturally follow.
Let’s start with the machine and make sense of that curious device. Then understanding all the remaining machines will naturally follow.
Make dots explode, from the first to the second box.
Here are four dots into the rightmost box of the machine, each worth .
Make them explode to get two dots in the second box (each worth ), and then explode them!
If you like, you can drag dots in the s place directly into the s place. Try it!
Here is one dot in a place we’ve labeled the s place. Unexplode the dot to show that it is worth two s. Unexplode some more to show that it is also worth four s. Unexplode even more to show that it is worth eight s.
Dots in the next box to the left are each worth two s. That is, they are worth .
What are the values of dots in boxes even further to the left?
We saw earlier that the code for thirteen in a machine is .
Make those dots explode to understand this code for thirteen.
Make dots explode and watch the code appear!
Here are two questions you might choose to ponder.
They each require thinking of codes that require more than five boxes in a machine!
Can you use pencil and paper?
What number has code ?
What is the code for the number two hundred?
People call the codes for numbers the binary representations of numbers (with the prefix bi-meaning “two"). They are also called base two representations. One only ever uses the two symbols and when writing numbers in binary.
Computers are built on electrical switches that are either on or off. So it is very natural in computer science to encode all arithmetic in a code that uses only two symbols: say for “on” and for “off.”
Thus base two, binary, is the right base to use in computer science.