SOLUTION: When computing for the check digit of a barcode why do we need to multiply the even-positioned digits by 3?

Algebra ->  Sequences-and-series -> SOLUTION: When computing for the check digit of a barcode why do we need to multiply the even-positioned digits by 3?      Log On


   



Question 1174086: When computing for the check digit of a barcode why do we need to multiply the even-positioned digits by 3?
Found 2 solutions by math_helper, ikleyn:
Answer by math_helper(2461) About Me  (Show Source):
You can put this solution on YOUR website!
One reason to have different weights on adjacent digits is to put some numerical distance between them. What I mean by 'distance' is that this different weighting causes the contribution of a digit (toward the check digit computation) to be different depending on whether it is in an even or odd position.

If the exact same weight were used on all digits, then the error of transposing two digits would have no effect on the check digit calculation and that error mode would escape detection.


Source, and for more info: https://en.wikipedia.org/wiki/International_Article_Number#Manufacturer_code
In particular, you may find this paragraph of interest:
"Check digit
The check digit is an additional digit, used to verify that a barcode has been scanned correctly. It is computed modulo 10, where the weights in the checksum calculation alternate 3 and 1. In particular, since the weights are relatively prime to 10, the EAN-13 system will detect all single digit errors. It also recognizes 90% of transposition errors (all cases, where the difference between adjacent digits is not 5). "



Answer by ikleyn(52787) About Me  (Show Source):
You can put this solution on YOUR website!
.

It is clear that a general public person (like me) and/or a school student will be perplexed with this question, 


because he (or she, or me) even doesn't know to which subject this question does relate, 
and why this question did arrive to this forum . . . 



Therefore, my question to the tutor @math_helper, whose knowledge admire me, is 


    to which area/subject/speciality this question does really relate ?

Thank you.