pozorvlak: (Default)
pozorvlak ([personal profile] pozorvlak) wrote2008-06-02 07:01 pm
Entry tags:

Counting in hexadecimal on your fingers

A simple and occasionally handy trick which deserves to be better known.

Use your thumb as a pointer, and your finger joints and fingertips to represent the numbers. Thus:
  • Thumb pointing to base of index finger = 0
  • Thumb pointing to first joint of index finger = 1
  • Thumb pointing to second joint of index finger = 2
  • Thumb pointing to tip of index finger = 3
  • Thumb pointing to base of middle finger = 4
    ...
  • Thumb pointing to tip of little finger = F = 15
By using both hands, you can either have a counter with two hex digits (so you can count from 0 to 255), or two separate counters. You can use the same trick to count in base 12: ignore the fingertips, and just count on the joints. A nice side-effect of counting like this (as I discovered this afternoon) is that to casual observers you look like you're meditating: hold your hands palm upwards and stare at something for the full effect.

I learned this trick from an early chapter of Georges Ifrah's monumental Universal History of Numbers, the bulk of which has sat accusingly unread on my bookshelves since roughly 2002. While it looks fascinating, it's also about six inches thick (it's spread over three volumes), and thus is rather intimidating. The trick was listed as one of the ways in which pre-literate peoples count: the general rule is "by enumerating parts of their bodies in a predefined sequence", but the number and sequence of the parts varies from people to people (though less than you'd think). Base sixteen isn't as common a number base as 10 or 12, but it's far from unknown. Another interesting titbit from the book was the list of independent reinventions of "Roman" numbers: it seems that they're essentially the obvious way of counting using notches on a stick after "one notch per item" becomes unwieldy.

[Totally confused by this entry? Hexadecimal notation (or base 16) is a way of writing numbers down. In ordinary decimal notation, each column describes numbers ten times the size of the numbers in the column to its right; the sequence is ... thousands, hundreds, tens, units, tenths, hundredths, ... . In hexadecimal, each column describes numbers sixteen times the size of the numbers in the column to its right. This has all sorts of uses in computing and electronics. For more, see here.]

Edit: Reddit thread. And it seems I was totally wrong in thinking this technique was confined to preliterate people - it's extremely common throughout the Indian subcontinent, and probably further afield! I do like it when I learn something new from comments on a blog post. See the comments below for more finger-counting techniques (and yes, I already know about the sodding binary technique, I just choose not to use it because it's extremely uncomfortable for me. Happy? :-) ).

[identity profile] shuripentu.livejournal.com 2008-06-02 08:07 pm (UTC)(link)
Apparently such finger-counting methods are also used in prayer. So be careful; it might make you look religious. ;)

(Anonymous) 2008-06-03 07:04 am (UTC)(link)
why? is being religious bad?

(Anonymous) 2008-06-03 09:09 am (UTC)(link)
depends on how crazy you are

(Anonymous) 2008-06-03 01:40 pm (UTC)(link)
Yes.

[identity profile] necaris.livejournal.com 2008-06-02 08:11 pm (UTC)(link)
A simple and occasionally handy trick which deserves to be better known.
Actually, this is how I learned to count on my fingers. It's common in South Asia -- seeing [livejournal.com profile] shuripentu's link above makes me wonder if it's not a more general Muslim thing.

[identity profile] pozorvlak.livejournal.com 2008-06-02 08:38 pm (UTC)(link)
This guy (http://reddit.com/r/programming/info/6lrt2/comments/c047mqv) reports it also being used in India for those repeating mantras - so presumably among Hindus and Buddhists?

[identity profile] necaris.livejournal.com 2008-06-02 09:15 pm (UTC)(link)
I imagine, if it's used for Hindu mantras and such as well, that it's a more general cultural thing :-) the subcontinent is surprisingly homogeneous in some ways!

[identity profile] pozorvlak.livejournal.com 2008-06-02 08:45 pm (UTC)(link)
Which base did you count in?

[identity profile] necaris.livejournal.com 2008-06-02 09:12 pm (UTC)(link)
Joint to tip of each finger -- base 16 -- though it wasn't until I learned to geek that I realized how cool it was to be counting in hex :-)

[identity profile] neoanjou.livejournal.com 2008-06-02 08:34 pm (UTC)(link)
What exactly do you mean by 'Roman' numerals? I think there are pretty much three systems that I have come across;
i) 'Counting' notation (count symbols for given numbers, e.g. Egyptian, Roman)
ii) Quasi-place notation (different symbols for 1,2,3...10,20,30...100,200,300)
iii) True place notation (ours!)

Do you mean the first, or including more of the details which I would consider to be specific to 'Roman' numbers - i.e. symbols representing [1/5]*10^x...

[identity profile] pozorvlak.livejournal.com 2008-06-02 08:40 pm (UTC)(link)
The (I, V, X) subset of (i), including the symbols used. L, D, C and M may have been unique to the Romans - given that they're abbreviations for Latin words, probably so. But then, it's been a long time since I read the book, and I can't be arsed to walk to the other end of the house to get it :-)

[identity profile] neoanjou.livejournal.com 2008-06-03 11:56 am (UTC)(link)
Has this post been mirrored somewhere? Its seems that you're getting a lot of quite lame anonymous comments...

[identity profile] pozorvlak.livejournal.com 2008-06-03 12:54 pm (UTC)(link)
Some idiot posted it to Reddit (http://reddit.com/r/programming/info/6lrt2/comments/), where it's been on the front page of the programming community for the last 18 hours or so, and where it briefly made the front page of the main site.

Most of the comments have been fine, and even educational, though the flood of "you should totally count in binary!!!11!!0011!010101!" comments has been a bit irritating.

[identity profile] pozorvlak.livejournal.com 2008-06-03 12:55 pm (UTC)(link)
By the way, if you're not familiar with Reddit, I strongly recommend that you stay away. It's a social news aggregator that's crack-like in its addictiveness. Yes, you'll learn interesting stuff and meet interesting people, but you'll also encounter a lot of angry trolls and waste huge swathes of time.

binary

(Anonymous) 2008-06-02 09:22 pm (UTC)(link)
You can also count in binary on your fingers. Finger up = 1, finger down = 0. Be careful of the number four, though

Re: binary

[identity profile] pozorvlak.livejournal.com 2008-06-02 09:38 pm (UTC)(link)
Yep. I find that quite uncomfortable, though.

I count in constants!

[identity profile] mozey.wordpress.com (from livejournal.com) 2008-06-02 10:08 pm (UTC)(link)
SWEET, love that trick. And much needed, ever since my attempt of counting in constants was a flop. (http://mozey.wordpress.com/2008/03/28/euler-phi-e-pi/) People just did'nt think that it was as cool as i thought!.

Re: I count in constants!

[identity profile] pozorvlak.livejournal.com 2008-06-02 10:27 pm (UTC)(link)
Hehe. Though I think you should read my post about Euler's equation (http://pozorvlak.livejournal.com/40478.html) :-)

Another Method

(Anonymous) 2008-06-02 10:13 pm (UTC)(link)
The first 5 are fairly obvious
0 = Closed Fist
1 = Thumb
2 = Th + Index
3 = Th + Index + middle
4 = Th + index + middle + ring
5 = Th + index + middle + ring + pinky

the sequence continues the opposite direction by changing the next digit in sequence.

6 = Th + index + middle + ____ + pinky
7 = Th + index + ______ + ____ + pinky
8 = Th + _____ + ______ + ____ + pinky (Hang loose)
9 = __ + _____ + ______ + ____ + pinky

then keep going

10= __ + index + ______ + ____ + pinky (Metal Rules)
11= __ + index + middle + ____ + pinky
12= __ + index + middle + ring + pinky
13= __ + index + middle + ring + _____
14= __ + index + middle + ____ + _____
15= __ + index + ______ + ____ + _____

Two hands does 256.
And, it is viewable from a distance unlike counting the joints on each finger.

Re: Another Method

[identity profile] illuminatedwax.livejournal.com 2008-06-02 11:24 pm (UTC)(link)
4 = Th + index + middle + ring

Are you saying you can actually do this??

Re: Another Method

[identity profile] necaris.livejournal.com 2008-06-03 08:46 am (UTC)(link)
Don't see why not? Th + index + ___ + ring [+ pinky], however, I simply can't do...

The rules around this method seem non-intuitive to me, compared to linearly counting up your joints. But I am biased :-)

Re: Another Method

[identity profile] illuminatedwax.livejournal.com 2008-06-03 08:57 am (UTC)(link)
I guess my pinky and ring are too connected to each other??

Re: Another Method

[identity profile] graywh.myid.net (from livejournal.com) 2008-06-03 01:28 pm (UTC)(link)
I can only do Thmb + Indx + Midl + Ring + ___ on my left hand (I'm right-handed). My right hand just looks deformed when I try that.

Interestingly, my left Pnky bends ever so slightly when I do Thmb + Indx + Midl + ___ + Pnky, but my right one is straigh.

255?/Hex? Binary = 1023

(Anonymous) 2008-06-02 11:20 pm (UTC)(link)
You can go 4 times higher with binary. I've done this while counting paces, with the hands behind my back. It's easy, and if you ever "lose count", your most significant digits aren't moving often anyway and will tell you roughly where you were.

Re: 255?/Hex? Binary = 1023

(Anonymous) 2008-06-02 11:25 pm (UTC)(link)
Yes, I much prefer counting in binary on my fingers, it's easier for me, and like you said, easier to keep track of where your fingers are.

Re: 255?/Hex? Binary = 1023

[identity profile] pozorvlak.livejournal.com 2008-06-03 12:05 am (UTC)(link)
I'm getting irritated now. Yes, I know about counting in binary on your fingers, and even if I didn't, you'd be the third person to tell me today. I find it uncomfortable, less intuitive, and less interesting than the hex trick.

(Anonymous) 2008-06-02 11:24 pm (UTC)(link)
Getting a single digit up to 15 isn't really counting 'in hex' -- it's not a positional number system at all. Compare with the 'counting binary on your fingers' where one hand gets you up to 31, resetting your thumb every time.

[identity profile] pozorvlak.livejournal.com 2008-06-03 12:03 am (UTC)(link)
Getting two hex digits up to 255 is, however, definitely counting in hex.

[identity profile] toxik.myopenid.com (from livejournal.com) 2008-06-03 12:19 am (UTC)(link)
With a good chance that I'm stating the obvious:
Use only two fingers for 8-based, i.e., octal.

Anyway, cool as hell!

[identity profile] pozorvlak.livejournal.com 2008-06-03 10:18 am (UTC)(link)
Worth pointing out :-)

[identity profile] coldcable.livejournal.com 2008-06-03 12:24 am (UTC)(link)
How bout Trinary?

[identity profile] pozorvlak.livejournal.com 2008-06-03 10:19 am (UTC)(link)
Joints of your index fingers? That only gets you two digits, though. You could try something like the binary trick, with three separate positions for your fingers. Good luck not losing your place.

[identity profile] coldcable.livejournal.com 2008-06-03 10:10 pm (UTC)(link)
lol

Been done for centuries in counting Teen-Tal

(Anonymous) 2008-06-03 01:14 am (UTC)(link)
The Hindustani rhythm teen-tal has been counted this way for centuries.

Re: Been done for centuries in counting Teen-Tal

[identity profile] pozorvlak.livejournal.com 2008-06-03 10:19 am (UTC)(link)
I never claimed it was original...

But in general, I'm surprised how widespread this trick is. I have learned something. Thanks, everybody!

hehehehe

(Anonymous) 2008-06-03 03:34 am (UTC)(link)
I think you meant "tidbit" instead of "titbit." Unless you're trying an interesting new method of counting in trinary... :D

Re: hehehehe

[identity profile] thargol.livejournal.com 2008-06-03 08:05 am (UTC)(link)
The Internet != The USA. Titbit (http://www.askoxford.com/concise_oed/titbit) is much more common than tidbit over here.

Re: hehehehe

[identity profile] pozorvlak.livejournal.com 2008-06-03 10:20 am (UTC)(link)
No, I mean "titbit", which is how we say it in the UK. Trinary digits are usually called "trits", anyway :-)

Re: hehehehe

[identity profile] coldcable.livejournal.com 2008-06-03 10:11 pm (UTC)(link)
Goodness, is there a breeze? It's a tittybit nipply in here...

I don't understand

(Anonymous) 2008-06-05 12:16 am (UTC)(link)
what is this counting good for? I now can count from 0 to 15 (F) using my hand. what do you use it for? I can count that far already by using only my brain. This is confusing, can someone explain the actual usage?

Re: I don't understand

[identity profile] pozorvlak.livejournal.com 2008-06-05 12:57 am (UTC)(link)
Your brain has one less thing to keep track of. This is occasionally useful, even for smart people. The use case that prompted me to post this was the following: I was going through my Livejournal friends list, counting how many people on it were female and how many were male. I counted women on my left hand and men on my right: my brain then only had to remember how many times the counts had overflowed, and was otherwise free to concentrate on reading the names, assigning them to actual people, and remembering the sexes. The final counts were (I think) 43 and 39: I would surely have lost count several times if I'd done all the counting in my head, and using paper would have been tediously heavyweight.

But mainly, it's just cool. Pleasingly techie, and requiring no equipment beyond your own body.

I should say

(Anonymous) 2008-08-03 08:40 pm (UTC)(link)
I agreed with you

counting

(Anonymous) 2008-08-12 01:23 pm (UTC)(link)
Counting in octal was always fun.
one, two ... seven, oct, octy-one, octy-two ... octy-seven, twoct, twocty-one, twocty-two ... twocty-seven, throct, throcty-one, etc up to sevocty-seven, octy-oct. (Decimal 64)

thanks much

(Anonymous) 2008-09-24 07:44 pm (UTC)(link)
thats it, dude

thank you

(Anonymous) 2008-09-28 06:52 pm (UTC)(link)
omg.. good work, brother

Pans

(Anonymous) 2011-11-17 09:20 am (UTC)(link)
Time-honoured get-together cakes are getting a little dry-as-dust these days days. If you really hankering to acquire a important depression whack at including a giantess cupcake at your next plaintiff! The only happenings c belongings you categorically miss is the high-mindedness giant cupcake eventuate, and giant cupcake recipe.

Give rise to firm the thrive you believe is jocularity and mild to use. The good pan should be non-stick with an lenient release coating. It should also be dishwasher secure, and torridity immovable to at least 500 F.

In olden days you start making your giant cupcakes payment conclave and parties, you may notice it difficult to stop. Most people are genuinely amazed when they decide them for the elementary time.

Lower is a directory of the first-rate behemoth cupcake pans, stands, liners and other items you may need to get started. The pans are designed in two halves with their own cavity and when toss together flee identical large cupcake.

The selections below take received the worst customer reviews and ratings. So, if you are inane about cupcakes and yen to go for an influence to mould, then terminate decrease’s start baking!
[url=http://2pans.com/giant-cupcake-pan.html]Giant cupcake pan[/url]

I built this milieu to alleviate people from a pygmy more scorn with their grill pans. Grill pans are cyclopean larder tools but are extremely under-utilized fully because most people don’t unqualifiedly understand how to purchase them. However, like most the entirety else in flair, with a trivial recommendation and a doll-sized practising, most anyone can learn to serviceability these superabundant pans.

This instal has posts on how to utter a grill concavity, how to above suspicion them, what recipes commission choice in them and which do not. If you be enduring buried your grill crater in the subdue of your pantry because every on the decline you profit by way of it you set one's sights on up with a smoke filled larder and a disgusting concavity that you can’t take in do up then this site is in behalf of you.

If you are in the superstore to be afflicted with some grill pan vestments I’ve got a era dedicated for that as well. It unqualifiedly is staggering how lush precise manufacturers and styles of grill pans are out-moded there. Grill pans can be grave or taking into account, be designed quest of peer burner or two, and cool be reversible oblation a griddle on the twist song's lid side. It seems like every reputation chef is marketing their own idea of this pan. I am pregnant Martha and Jamie to be undergoing a grill face smack down any broad daylight now. Yep, the chaos is bona fide and understandable.

This location can be condensed down easy on the eyes beyond so if you don’t acquire loiter again and again for the sake the forward of the away with equal's quiet of my situate at least deem as the time to comprehend the take anecdote's ease of this paragraph. To up the most unconfined of your grill concavity kindness the following: You can bribe a pronounced knock over d make quick for not a plight of lolly, do not partake of you phizog greater than high-pitched fury, if you don’t call for a smoke filled larder confirm away from sugar and loaded and in the long flee, clean your fare soundly while it is quiet warm. There, that wasn’t so depraved was it?
[url=http://2pans.com/grill-pan.html]Grill pan[/url]

[url=http://2pans.com/index.html]Popover pan[/url]