Last Time | Next Time |
I may throw a throwback problem from primes on there, too, because we're struggling with those and need to distinguish the prime from the binary stuff....
Suppose you start with 81 pennies: let's first do some primitive counting on it. Draw the tree, and write the appropriate string.
Then let's think about it in a slightly different way:
The secret of Fraudini's trick is another secret of the counting numbers, 1, 2, 3, 4, ....: the binary factorization of a number.
This is the second great factorization of the counting numbers. (The first is the prime factorization; there is a third, which we'll study soon.) So it turns out that the counting numbers and sums of distinct powers of two can be put into one-to-one correspondence (if we count single powers of two as "sums"...).
Here are the first few powers of 2:
\[ \begin{array}{l} 2^0 = 1 \cr 2^1 = 2 \cr 2^2 = 4 \cr 2^3 = 8 \cr 2^4 = 16 \cr 2^5 = 32 \cr 2^6 = 64 \cr 2^7 = 128 \cr 2^8 = 256 \end{array} \]
(Do you see why the Great Fraudini can only read numbers up to 63?)
So in base 10 we think of "17" as \[ 17 \textrm{ (one ten and seven ones) } = 1*10 + 7*1 = 1*10^1 + 7*10^0 \]
That last bit on the right shows 17 as a sum of "weighted" powers of 10 -- "weighted" because we have to say just how many ones we need (7 of them in this case). The weight could be any of the 10 digits we need in our system,
So if I want to pay you 17 dollars, I could give you 1 ten and 7 ones.
For binary numbers the "weights" are easy: 1 or 0. Just two digits. And that's perfect for computers, because they only have two fingers:
(Thanks to Blake Nelms, Math for Liberal Arts student from way back, for the graphic).
17 appears only on the 1 card and on the 16 card. We figure out how to write a number as a sum of powers of 2, and then we write that number on each of those cards. And then it will be the only number exclusively on those cards -- and the sum will tell me the number!
So we can write \[ 17=1*2^4+0*2^3+0*2^2+0*2^1+1*2^0 \] or, better yet, $17_{10} = 10001_2$ -- 17 base 10 is equal to 10001 base 2.
So if I want to pay you 17 dollars, I could give you one 16 and one 1 dollar note. I've always hoped that a student would design binary bills for me. In a way, the Fraudini cards could be considered bills, and if I need to pay you 17 dollars, I just give you each card that has a "17" on it. That would make them supremely easy to use, right?
If you're making 30,000/year, it's suddenly
111,010,100,110,000/year.
Wow! Does that feel better? You're a trillionaire!
Vi Hart has the most amazing ways of showing us interesting mathematics. She shows us that we can count to 31 on one hand. And, if you'll use the 10 fingers of two hands, you can get all the way up to $2^{10}-1=1023$...
Some people can only count to 10 with their fingers....
Watch Dave Brubeck's leg, counting out the rhythm....