Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
The valid book number 9781861978769 is typed into a library system, but the 7th and 8th digits are swapped, giving 9781869178769.
A check digit is worked out from the other digits and catches data entry errors. ISBN-13 and bar codes: multiply the digits by from the left and add; the check digit makes the total a multiple of . ARQ: positive acknowledgement (no error), negative acknowledgement (error, resend), and a timeout after which the sender resends.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The valid number. Its weighted total is , a multiple of , as it must be.
Step 2. The typed number. The 7th and 8th digits were and . Before the swap they gave . After the swap they give . The total falls by : .
Step 3. Accepted? is not a multiple of , so the number is rejected and must be typed again.
Step 4. Why the weights help. The two swapped digits sit in places with different weights, and . Swapping them changes the total by the difference of the digits. If all the weights were , a swap would not change the total at all.
Answer: (a) . (b) . (c) No; the different weights make a swap change the total.
Log in to join the discussion.
Loading…