How ISBN check digits catch your typos
The last digit of an old 10-digit ISBN isn't part of the book's identity; it's a check digit. You multiply the first nine digits by 10, 9, 8, ... down to 2, add them up, and choose the last digit so the total including it is divisible by 11. (If it needs to be 10, they write X.)
Because 11 is prime, this catches every single-digit mistake and every swap of two adjacent digits. Barcodes, bank card numbers and many ID numbers use similar ideas with different weights.
Where else have you noticed check digits hiding in everyday numbers?
Comments · 4
The cleverness is that picking a prime like 11 means no single wrong digit can slip through, because changing one digit always changes the weighted sum by an amount that isn't a multiple of 11. It's a nice example of maths doing quiet work behind the scenes, and credit card numbers use a similar trick.
Why do some ISBNs end in an X? Is that the check digit being ten?
Exactly. The check digit is computed modulo 11, so the value can be 10, which is written as X to keep it to one character.
The weights are chosen so that swapping two adjacent digits also changes the total. That's the clever part: it catches the most common human error.