Skip over navigation
Cambridge University Faculty of Mathematics NRich logo
menu search
  • Teachers expand_more
    • Early years
    • Primary
    • Secondary
    • Post-16
    • Events
    • Professional development
  • Students expand_more
    • Primary
    • Secondary
    • Post-16
  • Parents expand_more
    • Early Years
    • Primary
    • Secondary
    • Post-16
  • Problem-Solving Schools
  • About NRICH expand_more
    • About us
    • Impact stories
    • Support us
    • Our funders
    • Contact us
  • search

Or search by topic

Number and algebra

  • The Number System and Place Value
  • Calculations and Numerical Methods
  • Fractions, Decimals, Percentages, Ratio and Proportion
  • Properties of Numbers
  • Patterns, Sequences and Structure
  • Algebraic expressions, equations and formulae
  • Coordinates, Functions and Graphs

Geometry and measure

  • Angles, Polygons, and Geometrical Proof
  • 3D Geometry, Shape and Space
  • Measuring and calculating with units
  • Transformations and constructions
  • Pythagoras and Trigonometry
  • Vectors and Matrices

Probability and statistics

  • Handling, Processing and Representing Data
  • Probability

Working mathematically

  • Thinking mathematically
  • Developing positive attitudes
  • Cross-curricular contexts

Advanced mathematics

  • Decision Mathematics and Combinatorics
  • Advanced Probability and Statistics
  • Mechanics
  • Calculus

For younger learners

  • Early Years Foundation Stage
Age 11 to 14
Article by John Webb

Published 2000 Revised 2011

The Codabar Check

Every credit card is uniquely identified by a 16-digit number. The first 15 digits are assigned by the bank issuing the card. The last digit (called the check digit) is determined by a formula which enables a computer to check that the number has been correctly entered when the card is used in a transaction.

All the major credit card companies use a system called Codabar to assign the check digit. This is how it works.

 

1. Suppose that the first 15 digits are

$3141 5926 5358 979$

 

2. Add the digits in the odd positions and double the total.

$(3+4+5+2+5+5+9+9)\times 2=84$

 

3. Add the digits in the even positions.

$1+1+9+6+3+8+7=35$

 

4. Count the number of digits in the odd positions that are greater than $4$. The numbers in this example are $5$, $5$, $5$, $9$ and $9$, that is altogether $5$ numbers.

 

5. Now add together the three numbers obtained in this way to get $84+35+5=124$.

 

6. The check digit is the number needed to bring this total up to the next multiple of $10$. What should this be in our example? Yes, the required check digit is $6$.

 

The Codabar system is one of the most efficient error detection methods. It picks up 100% of all single digit errors, and most other common errors such as switching two adjacent digits.

Have a look at some credit cards for yourself and you will find that the last digit is given by the formula described here. Test it to see if it picks up errors likely to be made in transcribing the number.


You may also like

Playground Snapshot

The image in this problem is part of a piece of equipment found in the playground of a school. How would you describe it to someone over the phone?

Air Nets

Can you visualise whether these nets fold up into 3D shapes? Watch the videos each time to see if you were correct.

stemNRICH - Technology

This is the technology section of stemNRICH - Core.

  • Tech help
  • Accessibility Statement
  • Sign up to our newsletter
  • Twitter X logo

The NRICH Project aims to enrich the mathematical experiences of all learners. To support this aim, members of the NRICH team work in a wide range of capacities, including providing professional development for teachers wishing to embed rich mathematical tasks into everyday classroom practice.

NRICH is part of the family of activities in the Millennium Mathematics Project.

University of Cambridge logo NRICH logo