Lecture 15 1
Lecture 15 1
Check Digits
Congruences are used to check for errors in digit strings. A common
technique for detecting errors in such strings is to add an extra digit at the
end of the string. This final digit, or check digit, is calculated using a
particular function. Then, to determine whether a digit string is correct, a
check is made to see whether this final digit has the correct value.
Parity Check Bits
Digital information is represented by bit string, split into
blocks of a specified size.
(a) The first nine digits of the ISBN-10 of the sixth edition
of this book are 007119008. What is the check digit?
(b) Is 084930149X a valid ISBN-10?
To see whether 084930149X is a valid ISBN-10, we see if
σ10
𝑖=1 𝑖𝑥𝑖 ≡ 0(𝑚𝑜𝑑 11)
We see that 1 · 0 + 2 · 8 + 3 · 4 + 4 · 9 + 5 · 3 + 6 · 0 + 7 ·
1 + 8 · 4 + 9 · 9 + 10 · 10 = 0 + 16 + 12 + 36 + 15 + 0 + 7 +
32 + 81 + 100 = 299 ≡ 2 ≢ 0 (mod 11). Hence, 084930149X
is not a valid ISBN-10.