Last Time | Next Time |
It turns out that binary (base-2) numbers are useful for not only writing any number in a unique way with only two fingers, but they were also useful to the folks who used the "primitive counting" scheme we learned at the beginning of the course. "Primitive counting" (counting by partition) of a number of sheep gives a string that is the same as the binary representation of that number.
Now we have a great way of checking our primitive counts, or of writing binary numbers: they're exactly the same. It turns out that primitive people may have been counting in binary, and today our best computers, the ones that find great big prime numbers (that are powers of 2 -- minus 1), do their counting the same way.
Two fingers are enough!
Let's do one more example, just to review: count 47 sheep, and compare to the binary number for 47.
(I underline "distinct" because you cannot repeat powers: otherwise you could write, for example,
1 | 42 | |
2 | ||
4 | ||
8 | ||
16 | ||
32 | too big! |
1 | 23 | |
2 | ||
4 | ||
8 | ||
16 | ||
32 | ||
64 | too big! |
1 | 321 | |
2 | ||
4 | ||
8 | ||
16 | ||
32 | ||
64 | ||
128 | Too big! |
Now add up those rows marked with an asterix (*), and you'll get the answer (35952).