Professional Documents
Culture Documents
Matm Check Codes and Digit
Matm Check Codes and Digit
MATM111
MATHEMATICS AS A TOOL:
Check Digits and Check Codes
Engr. Dave Joseph V. Gangcuangco
Lecturer
V. Mathematics as a Tool: Check Digits and Check Codes
Learning Outline
CODES AND CRYPTOGRAPHY
Check Codes and Check Digits
There are several methods in producing
identification numbers which are unique. In the following
methods, modular arithmetic is used to produce and
verify identification numbers.
The examples are;
• the Universal Product Code (UPC),
• United States Postal Services (USPS),
• the Credit Card, and
• the International Standard Book Number.
Each examples uses their last digit as the check
digits to verify the identification number.
CODES AND CRYPTOGRAPHY
Check Codes and Check Digits
CHECK CODES AND DIGITS
• The Universal Product Code
(UPC) is mainly used in
products sold in department
stores and groceries. The UPC
consists of barcodes with 12
digits where the last one is
the check digit.
CODES AND CRYPTOGRAPHY
Check Codes and Check Digits
CHECK CODES AND DIGITS
CODES AND CRYPTOGRAPHY
Check Codes and Check Digits
CHECK CODES AND DIGITS
• The International Standard Book
Number (ISBN) is used on books
where usually found at the last
page of the book. ISBN can be
ISBN-10 or ISBN-13 where they
used 10 digits or 13 digits string
of number respectively with the
last digit as the check digit.
CODES AND CRYPTOGRAPHY
Check Codes and Check Digits
CHECK CODES AND DIGITS
CODES AND CRYPTOGRAPHY
Check Codes and Check Digits
CHECK CODES AND DIGITS
• Lastly, the United States
Postal Services (USPS) is
consisting of 11 digits, while
the Credit Card uses 16 digits
where both of them uses
their last digits as the check
digits.
CODES AND CRYPTOGRAPHY
Check Codes and Check Digits
FORMULAS FOR THE CHECK DIGITS
i] UNIVERSAL PRODUCT CODE (UPC)
CHECK DIGIT : d12
d12= 10 – [(3d1 +d2 + 3d3 + d4 +3d5 +d6 + 3d7 + d8 + 3d9 + d10 + 3d11)(mod10)]
***NOTE : ADD ALL THE DIGITS, TREATING THE TWO-DIGIT NUMBERS AS TWO SINGLE DIGITS.
CODES AND CRYPTOGRAPHY
Check Codes and Check Digits
Determine the check digit for a new product if the first 11
digits are 8-21345-67132- .
UNIVERSAL PRODUCT CODE (UPC)
CHECK DIGIT : d12
d12= 10 – [(3d1 +d2 + 3d3 + d4 +3d5 +d6 + 3d7 + d8 + 3d9 + d10 + 3d11)(mod10)]