However, you're going to have to learn to count in binary first. Again, this is a very basic topic to computer science students, but I hear that there are plenty of non-programmers who read this blog. For their benefit, I'm going to give a primer. If you already know binary, feel free to skip down to the next bold header.
How to count in binary
When you count by tens, the digits can be represented as wheels on the odometer of your car. The right-most wheel goes:
- 1, 2, 3, 4, 5, 6, 7, 8, 9…
- 11, 12, 13, 14, 15, 16, 17, 18, 19…
So anyway, things are pretty much the same from here on out, until we get up to:
- 97, 98, 99…
Okay, that's base 10. Binary is a similar system, except that it's got a severe shortage of numerals. Whereas we were using all the numbers from zero to nine, in binary you only have two possible values: one, and zero. Like a light switch: on, or off. Circuit open, or circuit closed. That's how a computer works. But with just ones and zeroes, you can represent every positive integer if you have the patience.
Let's imagine we have an odometer like before, but this one has very small wheels. They flip from 0 to 1. Then they flip from 1 back to 0. When they flip to 0, they advance the next wheel. Okay?
So your odometer reads:
- 0: 00000
- 1: 00001
- 2: 00010
- 3: 00011
- 4: 00100
In base ten, every digit represents a value that is ten times the previous digit. So the first digit is worth one, the second digit is worth ten, the third digit is worth a hundred, the fourth is worth a thousand, and so on.
Similarly, in base two, every digit represents a value that is two times the previous digit.
- 1 -> 1
- 10 -> 2
- 100 -> 4
- 1000 -> 8
- 10000 -> 16
- 10110 = 16 + 4 + 2 = 22
How to count to 1,023 on your fingers
- Hold out your hands, palms upward. Now make them fists. No fingers are extended. That's zero.
- Extend your right thumb. The right-most digit is now set to "on". That's one.
- Close up your thumb, but extend your right index finger. That's two.
- Extend your thumb again, and also leave your index finger out. Three.
- Close up your thumb and index fingers, but then extend your middle finger. That's four. It is also an obscene gesture to most people, so if you're in public, make sure your hands are under a desk or something.
That's really all there is to it. The highest you can go with this system is 1111111111 in binary, which is 1,023 in regular counting (210 - 1).
Other numbers that form obscene gestures to Americans: 128; 132
Numbers that may be obscene to Europeans: 6; 384; 390. They may also be interpreted as peace signs or a Richard Nixon impression.
What can you do with this? Not much. You can kill about ten to twenty minutes. You can also probably perform a cheap mind-reading trick if you have an accomplice who can also do it. ("I'm thinking of a number from one to a thousand." "583. I certainly wasn't paying attention to the funny way you're holding your hands.") And finally, you can waste a perfectly good afternoon writing a silly blog post.
By the way... if you DID take your shoes off, you could count to 1,048,575.