Last Time | Next Time |
This magic trick, carried out with the help of six simple cards, no doubt amazed and astonished you, and made you think "Hmmm... maybe there's money to be made here!"
I have 11 Togolese shirts. Suppose I put them into a strict rotation, each school day a different shirt (M-F, five days out of seven), and I repeat the cycle through the end of the semester.... Will you see each shirt before the end of the semester?
It turns out that The Great Fraudini can read anyone's mind -- so long as they're thinking of a number between 1 and 63, and they're willing to play a little card game with him. So let's recall how this works.
That would completely mess things up, right? We get to that in a moment.
A method of "counting by partitions" that Patricia Baggett and Andrzej Ehrenfeucht proposed at the 2011 National Math Meetings. Here's how it works:
You make a note of whether there is a leftover sheep or not -- maybe you make a mark, like a "1" or a "0"; or maybe you tie different knots in a string (more on knots later in the course). This is all you have to do to communicate the number to the King! You don't need to know how to count, to our way of thinking.
I say "Whoever's doing this..." -- I mean, "Whoever's doing this primitive counting...." This is presumably someone who doesn't know how to count -- at least not the way we do -- but they can tell if there's a sheep left over (and write "1") or not (and write "0").
Notice that we eventually have a single sheep in a pen, and that's when we're done. We have to write a "1" for the final sheep, to indicate that there's "one leftover".
Then the answer will be written as 1, 0, 1, 1, 0. That is, from the bottom up, left to right. This is important! We have to have a consistent scheme for writing.
So how do we write
(Notice that, while there can be either a 0 or 1 at the right end, there is always the "1" on the left -- meaning the last sheep standing!
Can you rebuild the tree using these "tally sticks"? If so, you can get a job in the King's counting house. Let's rebuild some....
But rather than count out fifty pennies, I'd make a stack of 10, then four more stacks of exactly the same height (one-to-one correspondence). Five stacks of 10 makes 50. This is a similar idea....
If you have a lot of pennies, you could divide them in half, count half, and then multiply by two. But if you have one left over, you'd have to add that one.
If the half is still too many to count, do it again (on half), and so on -- until you get to the point where you can count "the half" (like if it gets down to 1 coin, say!:).
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. 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). For binary numbers the "weights" are easy: 1 or 0.
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!
\[ 17=1+8+8=2^0+2^3+2^3 \] So we could 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.
I always tell people to write their salaries in base 2, because they look a lot bigger! More impressive.... All of a sudden you find yourself making six or seven figures!
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....