Contents 1 Design 2 Examples 2.1 UPC 2.2 ISBN 10 2.3 ISBN 13 2.4 EAN (GLN, GTIN, EAN numbers administered by GS1) 2.5 Other examples of check digits 2.5.1 International 2.5.2 In the USA 2.5.3 In Central America 2.5.4 In Eurasia 2.5.5 In Oceania 3 Algorithms 4 See also 5 References 6 External links

Design[edit] This section does not cite any sources. Please help improve this section by adding citations to reliable sources. Unsourced material may be challenged and removed. (April 2010) (Learn how and when to remove this template message) Check digit algorithms are generally designed to capture human transcription errors. In order of complexity, these include the following: [1] single digit errors, such as 1 → 2 transposition errors, such as 12 → 21 twin errors, such as 11 → 22 jump transpositions errors, such as 132 → 231 jump twin errors, such as 131 → 232 phonetic errors, such as 60 → 16 ("sixty" to "sixteen") In choosing a system, a high probability of catching errors is traded off against implementation difficulty; simple check digit systems are easily understood and implemented by humans but do not catch as many errors as complex ones, which require sophisticated programs to implement. A desirable feature is that left-padding with zeros should not change the check digit. This allows variable length digits to be used and the length to be changed. If there is a single check digit added to the original number, the system will not always capture multiple errors, such as two replacement errors (12 → 34) though, typically, double errors will be caught 90% of the time (both changes would need to change the output by offsetting amounts). A very simple check digit method would be to take the sum of all digits (digital sum) modulo 10. This would catch any single-digit error, as such an error would always change the sum, but does not catch any transposition errors (switching two digits) as re-ordering does not change the sum. A slightly more complex method is to take the weighted sum of the digits, modulo 10, with different weights for each number position. To illustrate this, for example if the weights for a four digit number were 5, 3, 2, 7 and the number to be coded was 4871, then one would take 5×4 + 3×8 + 2×7 + 7×1 = 65, i.e. 65 modulo 10, and the check digit would be 5, giving 48715. Systems with weights of 1, 3, 7, or 9, with the weights on neighboring numbers being different, are widely used: for example, 31 31 weights in UPC codes, 13 13 weights in EAN numbers (GS1 algorithm), and the 371 371 371 weights used in United States bank routing transit numbers. This system detects all single-digit errors and around 90% of transposition errors. 1, 3, 7, and 9 are used because they are coprime to 10, so changing any digit changes the check digit; using a coefficient that is divisible by 2 or 5 would lose information (because 5×0 = 5×2 = 5×4 = 5×6 = 5×8 = 0 modulo 10) and thus not catch some single-digit errors. Using different weights on neighboring numbers means that most transpositions change the check digit; however, because all weights differ by an even number, this does not catch transpositions of two digits that differ by 5, (0 and 5, 1 and 6, 2 and 7, 3 and 8, 4 and 9), since the 2 and 5 multiply to yield 10. The ISBN-10 code instead uses modulo 11, which is prime, and all the number positions have different weights 1, 2, ... 10. This system thus detects all single digit substitution and transposition errors (including jump transpositions), but at the cost of the check digit possibly being 10, represented by "X". (An alternative is simply to avoid using the serial numbers which result in an "X" check digit.) ISBN-13 instead uses the GS1 algorithm used in EAN numbers. More complicated algorithms include the Luhn algorithm (1954), which captures 98% of single digit transposition errors (it does not detect 90 ↔ 09) and the still more sophisticated Verhoeff algorithm (1969), which catches all single digit substitution and transposition errors, and many (but not all) more complex errors. Similar is another abstract algebra-based method, the Damm algorithm (2004), that too detects all single-digit errors and all adjacent transposition errors. These three methods use a single check digit and will therefore fail to capture around 10% of more complex errors. To reduce this failure rate, it is necessary to use more than one check digit (for example, the modulo 97 check referred to below, which uses two check digits - for the algorithm, see International Bank Account Number) and/or to use a wider range of characters in the check digit, for example letters plus numbers.

Examples[edit] UPC[edit] The final digit of a Universal Product Code is a check digit computed as follows:[2] Add the digits in the odd-numbered positions (first, third, fifth, etc.) together and multiply by three. Add the digits (up to but not including the check digit) in the even-numbered positions (second, fourth, sixth, etc.) to the result. Take the remainder of the result divided by 10 (modulo operation) and if not 0, subtract this from 10 to derive the check digit. For instance, the UPC-A barcode for a box of tissues is "036000241457". The last digit is the check digit "7", and if the other numbers are correct then the check digit calculation must produce 7. Add the odd number digits: 0+6+0+2+1+5 = 14. Multiply the result by 3: 14 × 3 = 42. Add the even number digits: 3+0+0+4+4 = 11. Add the two results together: 42 + 11 = 53. To calculate the check digit, take the remainder of (53 / 10), which is also known as (53 modulo 10), and if not 0, subtract from 10. Therefore, the check digit value is 7. i.e. (53 / 10) = 5 remainder 3; 10 - 3 = 7. Another example: to calculate the check digit for the following food item "01010101010x". Add the odd number digits: 0+0+0+0+0+0 = 0. Multiply the result by 3: 0 x 3 = 0. Add the even number digits: 1+1+1+1+1=5. Add the two results together: 0 + 5 = 5. To calculate the check digit, take the remainder of (5 / 10), which is also known as (5 modulo 10), and if not 0, subtract from 10: i.e. (5 / 10) = 0 remainder 5; (10 - 5) = 5. Therefore, the check digit x value is 5. ISBN 10[edit] The final character of a ten-digit International Standard Book Number is a check digit computed so that multiplying each digit by its position in the number (counting from the right) and taking the sum of these products modulo 11 is 0. The digit the farthest to the right (which is multiplied by 1) is the check digit, chosen to make the sum correct. It may need to have the value 10, which is represented as the letter X. For example, take the ISBN 0-201-53082-1: The sum of products is 0×10 + 2×9 + 0×8 + 1×7 + 5×6 + 3×5 + 0×4 + 8×3 + 2×2 + 1×1 = 99 ≡ 0 (mod 11). So the ISBN is valid. Note that positions can also be counted from left, in which case the check digit is multiplied by 10, to check validity: 0×1 + 2×2 + 0×3 + 1×4 + 5×5 + 3×6 + 0×7 + 8×8 + 2×9 + 1×10 = 143 ≡ 0 (mod 11). ISBN 13[edit] ISBN 13 (in use January 2007) is equal to the EAN-13 code found underneath a book's barcode. Its check digit is generated the same way as the UPC except that the even digits are multiplied by 3 instead of the odd digits.[3] EAN (GLN, GTIN, EAN numbers administered by GS1)[edit] EAN (European Article Number) check digits (administered by GS1) are calculated by summing each of the odd position numbers multiplied by 3 and then by adding the sum of the even position numbers. Numbers are examined going from right to left, so the first odd position is the last digit in the code. The final digit of the result is subtracted from 10 to calculate the check digit (or left as-is if already zero). A GS1 check digit calculator and detailed documentation is online at GS1's website.[4] Another official calculator page shows that the mechanism for GTIN-13 is the same for Global Location Number/GLN.[5] Other examples of check digits[edit] International[edit] The International SEDOL number. The final digit of an ISSN code or IMO Number. The International Securities Identifying Number (ISIN). Object Management Group FIGI standard final digit.[6] The International CAS registry number's final digit. Modulo 10 check digits in credit card account numbers, calculated by the Luhn algorithm. Also used in the Norwegian KID (customer identification number) numbers used in bank giros (credit transfer), Used in IMEI of mobile phones. Last check digit in EAN/UPC serialisation of Global Trade Identification Number (GTIN). It applies to GTIN-8, GTIN-12, GTIN-13 and GTIN-14. The final digit of a DUNS number (though this is scheduled to change, such as that the final digit will be chosen freely in new allocations, rather than being a check digit). The third and fourth digits in an International Bank Account Number (Modulo 97 check). The final digit in an International Standard Text Code. The final character encoded in a magnetic stripe card is a computed Longitudinal redundancy check. In the USA[edit] The tenth digit of the National Provider Identifier for the US healthcare industry. The final digit of a POSTNET code. The North American CUSIP number. The final (ninth) digit of the routing transit number, a bank code used in the United States. The ninth digit of a Vehicle Identification Number (VIN). Mayo Clinic patient identification numbers used in Arizona and Florida include a trailing check digit[citation needed]. The eleventh digit of a Customs & Border Protection entry number. In Central America[edit] The Guatemalan Tax Number (NIT - Número de Identificación Tributaria) based on modulo 11. In Eurasia[edit] The Spanish fiscal identification number (número de identificación fiscal, NIF), (based on modulo 23). The ninth digit of an Israeli Teudat Zehut (Identity Card) number. The 13th digit of the Serbian and Former Yugoslav Unique Master Citizen Number (JMBG). The last two digits of the 11-digit Turkish Identification Number (Turkish: TC Kimlik Numarası). The ninth character in the 14-character EU cattle passport number (cycles from 1 to 7: see British Cattle Movement Service). The ninth digit in an Icelandic Kennitala (national ID number). Modulo 97 check digits in a Belgian and Serbian bank account numbers. The ninth digit in a Hungarian TAJ number (social insurance number). For the residents of India, the unique identity number named Aadhaar has a trailing 12th digit that is calculated with the Verhoeff algorithm.[7] The Intellectual Property Office of Singapore (IPOS) has confirmed a new format for application numbers of registrable Intellectual Property (IP, e.g., trade marks, patents, registered designs). It will include a check character calculated with the Damm algorithm.[8] The last digit of Chinese citizen ID number (second generation) is calculated by modulo 11-2 as specified in Chinese GuoBiao (aka. national standard) GB11643-1999 which adopts ISO 7064:1983. 'X' is used if the calculated checking digit is 10. In Oceania[edit] The Australian tax file number (based on modulo 11). The seventh character of a New Zealand NHI Number. The last digit in a New Zealand locomotive's Traffic Monitoring System (TMS) number.

Algorithms[edit] Notable algorithms include: Luhn algorithm (1954) Verhoeff algorithm (1969) Damm algorithm (2004)

See also[edit] Casting out nines, similar modular sum check Check bit, binary equivalent

References[edit] ^ Kirtland, Joseph (2001). Identification Numbers and Check Digit Schemes. Classroom Resource Materials. Mathematical Association of America. pp. 4–6. ISBN 978-0-88385-720-5.  ^ "GS1 Check Digit Calculator". GS1 US. 2006. Archived from the original on 2008-05-09. Retrieved 2008-05-21.  ^ "ISBN Users Manual". International ISBN Agency. 2005. Retrieved 2008-05-21.  ^ "Check Digit Calculator". GS1. 2005. Retrieved 2008-05-21.  ^ "Check Digit Calculator, at GS1 US official site". GS1 US. Retrieved 2012-08-09.  ^ ^ "Unique Identification Card". Geek Gazette. IEEE Student Branch (Autumn 2011): 16. Archived from the original on 2012-10-24.  ^ Dr. Chong-Yee Khoo (20 January 2014). "New Format for Singapore IP Application Numbers at IPOS". Singapore Patent Blog. Cantab IP. Retrieved 6 July 2014. 

External links[edit] Identification numbers and check digit schemes (a mathematical explanation of various check digit schemes) UPC, EAN, and SCC-14 check digit calculator GS1 check digit calculator Wikimedia Commons has media related to Check digit. Retrieved from "" Categories: Error detection and correctionHidden categories: Articles needing additional references from April 2010All articles needing additional referencesAll articles with unsourced statementsArticles with unsourced statements from April 2010Articles containing Turkish-language text

Navigation menu Personal tools Not logged inTalkContributionsCreate accountLog in Namespaces ArticleTalk Variants Views ReadEditView history More Search Navigation Main pageContentsFeatured contentCurrent eventsRandom articleDonate to WikipediaWikipedia store Interaction HelpAbout WikipediaCommunity portalRecent changesContact page Tools What links hereRelated changesUpload fileSpecial pagesPermanent linkPage informationWikidata itemCite this page Print/export Create a bookDownload as PDFPrintable version In other projects Wikimedia Commons Languages CatalàČeštinaDeutschΕλληνικάEspañolEsperantoFrançaisItalianoעבריתLatviešuNederlands日本語NorskNorsk nynorskPortuguêsРусскийSuomiไทย中文 Edit links This page was last edited on 28 November 2017, at 16:28. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Developers Cookie statement Mobile view (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.344","walltime":"0.425","ppvisitednodes":{"value":1093,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":25703,"limit":2097152},"templateargumentsize":{"value":1245,"limit":2097152},"expansiondepth":{"value":15,"limit":40},"expensivefunctioncount":{"value":2,"limit":500},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00% 387.927 1 -total"," 38.32% 148.639 1 Template:Lang-tr"," 18.60% 72.148 1 Template:Reflist"," 15.51% 60.168 1 Template:Refimprove"," 10.38% 40.272 2 Template:Ambox"," 9.56% 37.088 1 Template:Commons_category"," 8.32% 32.292 1 Template:Cite_book"," 6.79% 26.342 1 Template:ISBN"," 6.42% 24.916 1 Template:Citation_needed"," 5.81% 22.528 1 Template:Fix"]},"scribunto":{"limitreport-timeusage":{"value":"0.208","limit":"10.000"},"limitreport-memusage":{"value":11831404,"limit":52428800}},"cachereport":{"origin":"mw1329","timestamp":"20180116174644","ttl":1900800,"transientcontent":false}}});});(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":521,"wgHostname":"mw1329"});});

Check_digit - Photos and All Basic Informations

Check_digit More Links

Wikipedia:VerifiabilityHelp:Introduction To Referencing With Wiki Markup/1Help:Maintenance Template RemovalRedundancy CheckError Detection And CorrectionBinary NumberParity BitNumerical DigitWikipedia:Citing SourcesWikipedia:VerifiabilityHelp:Introduction To Referencing With Wiki Markup/1Wikipedia:VerifiabilityHelp:Maintenance Template RemovalAlgorithmTranscription ErrorDigital RootModulo OperationWeighted SumUniversal Product CodeEuropean Article NumberRouting Transit NumberCoprimeLuhn AlgorithmVerhoeff AlgorithmAbstract AlgebraDamm AlgorithmInternational Bank Account NumberUniversal Product CodeInternational Standard Book NumberModulo OperationInternational Standard Book NumberSpecial:BookSources/0-201-53082-1EAN-13European Article NumberGS1GS1Global Location NumberSEDOLISSNIMO NumberInternational Securities Identifying NumberFIGICAS Registry NumberCredit CardLuhn AlgorithmInternational Mobile Equipment IdentityGTINData Universal Numbering SystemInternational Bank Account NumberInternational Standard Text CodeMagnetic Stripe CardLongitudinal Redundancy CheckNational Provider IdentifierPOSTNETCUSIPRouting Transit NumberBank CodeVehicle Identification NumberMayo ClinicWikipedia:Citation NeededCustoms & Border ProtectionModulo OperatorIsraelTeudat ZehutSerbiaSFRYUnique Master Citizen NumberTurkish Identification NumberTurkish LanguageEuropean UnionBritish Cattle Movement ServiceIcelandKennitalaBelgiumSerbiaHungaryIndiaAADHAARVerhoeff AlgorithmIntellectual Property Office Of SingaporeIntellectual PropertyTrademarkPatentIndustrial Design RightDamm AlgorithmTax File NumberModulo OperatorNew ZealandNHI NumberLocomotives Of New ZealandLuhn AlgorithmVerhoeff AlgorithmDamm AlgorithmCasting Out NinesCheck BitInternational Standard Book NumberSpecial:BookSources/978-0-88385-720-5Help:CategoryCategory:Error Detection And CorrectionCategory:Articles Needing Additional References From April 2010Category:All Articles Needing Additional ReferencesCategory:All Articles With Unsourced StatementsCategory:Articles With Unsourced Statements From April 2010Category:Articles Containing Turkish-language TextDiscussion About Edits From This IP Address [n]A List Of Edits Made From This IP Address [y]View The Content Page [c]Discussion About The Content Page [t]Edit This Page [e]Visit The Main Page [z]Guides To Browsing WikipediaFeatured Content – The Best Of WikipediaFind Background Information On Current EventsLoad A Random Article [x]Guidance On How To Use And Edit WikipediaFind Out About WikipediaAbout The Project, What You Can Do, Where To Find ThingsA List Of Recent Changes In The Wiki [r]List Of All English Wikipedia Pages Containing Links To This Page [j]Recent Changes In Pages Linked From This Page [k]Upload Files [u]A List Of All Special Pages [q]Wikipedia:AboutWikipedia:General Disclaimer

view link view link view link view link view link