# ISBN Encoding

The *International Standard Book Number* (ISBN) is based on an ISO International Standard that was first published in 1972 as ISO 2108. The number is also known as IBSN-10 as it consists of 10 digits. The new standard ISBN-13 is in the works and is planned to be used starting 2007.

An ISBN-10 consists of four parts which are separated by hyphen:

- 1-4 digit
*country (language) indicator* - Variable length
*Publisher code* *Book number*- 1
*check digit*.

Now there is where mathematics comes in. A valid ISBN d_{1}d_{2}...d_{10} is required to satisfy the following identity

(1) |
_{1} + 2×d_{2} + 3×d_{3} + ... + 10×d_{10} = 0 (mod 11). |

or, which is the same,

(1') |
_{1} + 9×d_{2} + 8×d_{3} + ... + 1×d_{10} = 0 (mod 11). |

The latter leads to a more direct computation of the last digit. If, as a result of (1') d_{10} comes out to be 10, in the ISBN it is replaced by an "X".

The applet below allows one to experiment with IBSN-10. The first nine digits of the ISBN string are clickable and modifiable. The last is calculated according to the algorithm (1'). The digits cycle through the values 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -. For a valid number, it is required that

- the number of hyphens be three,
- no two hyphens be in consecutive positions,
- the penultimate symbol be hyphen.

For an invalid number, the last digit is replaced with "?".

What if applet does not run? |

Presently, an ISBN-10 is encoded as an EAN-13 by prepending the *ISBN Bookland* code 978 and removing the hyphens, as shown at the bottom of the applet (these digits are not clickable). As a point of departure, the planned ISBN-13 will mimic ISBN-10's embedding into EAN-13 by prepending am ISBN-10 with "978-". Note that the check digits in ISBN and EAN are computed differently and independently. The "embedding" only relates to the first nine digits of an ISBN.

### References

- E. B. Burger, M. Starbird,
*The Heart of Mathematics*, Key College Publishing, 2000, p. 94

|Contact| |Front page| |Contents| |Algebra|

Copyright © 1996-2018 Alexander Bogomolny66212181