### ISBN Coding

For the purposes of my second year mathematics essay I've been reading about coding theory. This is the field that I'd like to be in when I'm all grown up, but I stumbled upon something really cool:

Grab the book closest to you, it doesn't matter what it is just so long as it has an ISBN too (you may also want to grab a calculator for the next part).

Right, take the first digit of the ISBN multiply it by ten and add it to the second multiplied by nine, add it to the third multiplied by eight and so on all the way to the last digit (if the last is an X add 10). Then divide this number by 11, as long as you've done all the computation correctly then you will always get an integer! How cool is that, error detection in ISBNs!

If you want to know how that works, either do a Google search, or wait a week or two until I've written my essay, and I'll publish the ISBN example.

## 2 comments by 1 or more people

I'm guessing if you like that, you'll also like the Luhn algorithm – which is used in all credit card numbers to check random input errors. I got excited when I found it – but then again, that's just me. And if you're doing an essay on coding theory, I guess you've already come across it.

02 Jan 2006, 01:21

Ooh the ISBN error detection – we covered that in GCSE ICT i think. I couldn't, and still can't, get over how clever it is! I will be checking out the Luhn algorithm when I have time!

03 Jan 2006, 19:53

## Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.