• Email Us: [email protected]
  • Contact Us: +1 718 874 1545
  • Skip to main content
  • Skip to primary sidebar

Medical Market Report

  • Home
  • All Reports
  • About Us
  • Contact Us

Check Digits Are A Little Piece Of Number Theory You Use Every Day

March 8, 2025 by Deborah Bloomfield

Had you asked G H Hardy – the Cambridge scholar responsible for myriad seminal mathematical results and developments of the early 20th century – what his favorite area of math was, he’d answer without hesitation: number theory. 

ADVERTISEMENT

It is, he wrote in A Mathematician’s Apology, “one of the most obviously useless branches” of math, and so those who study it “may be justified in rejoicing that [its] very remoteness from ordinary human activities should keep it gentle and clean.”

Well, no disrespect to Hardy, but he couldn’t be more wrong about that. Since his death in 1947, the world has seen the rise of public-key encryption schemes such as RSA; computer systems to generate random (or at least, pseudorandom) numbers; countless computer algorithms for error correction and image generation and storage; cellular communication networks, optimized with techniques based on the theory of modular forms – the list goes on, and on, and on.

But there’s one much more humble application of number theory that you might not have heard of – though it’s arguably far more important than, say, your cell signal. And if you want to see it for yourself, you need only look as far as your local supermarket.

What are check digits?

Imagine you’re a bartender in Florida, and a kid who looks barely old enough to vote hands you his driver’s license and asks for an old fashioned. Suspicious, you check the details on the card: you see a birthday of January 24, and a license number ending 162.

You turn him down with a scoff. “Nice try, kid,” you say, “but this ID is fake. Try the bar down the road; their servers haven’t heard of check digits.”

How did you know the kid was lying? Well, according to the Cornell Math Explorers’ Club, states like Illinois and Florida have particular rules about how they create driver’s license numbers. They take into account your name, sex, and date of birth – and they add a check digit at the end.

ADVERTISEMENT

But what does that mean? Well, a check digit is pretty much what it sounds like: it’s a digit (or digits) that provides a way to check the number before it. It’s kind of a security feature, but not one that’s of vital importance – rather than protecting against identity theft or something, it’s more there to make sure you don’t accidentally swap two numbers around, or misread a scuffed-down 8 as a 3, for example.

So, for your Floridian driver’s license, the issuers “use linear functions to encode the month and date of birth into a three-digit number that is made into the last three digits of the driver’s license number,” the Explorers’ Club explains. “For males in Florida the last three digits are given by 40(m – 1) + b, where m is the month and b is the date of birth […] For a female they then add 500 to this number.”

A young man born on January 24, therefore, would have a license ending in 024 – that’s 40 × (1 – 1) + 24. The license you were handed in our hypothetical, ending 162? That would belong to someone born on May 2. It’s a fake.

Where do we find check digits?

We live in an age ruled by numbers, and as such, check digits have (ironically) innumerable uses. Books, for example, are universally identified by unique International Standard Book Numbers (ISBNs). These can be 10 or 13 digits long, depending on the age of the book, and the very last one of those is a check digit.

Unfortunately, finding that digit is a lot more complicated than the Florida driver’s license example. “Each of the first 12 digits of the ISBN is alternately multiplied by 1 and 3,” explains the ISBN Users’ Manual; “The check digit is equal to 10 minus the remainder resulting from dividing the sum of the weighted products of the first 12 digits by 10 with one exception. If this calculation results in an apparent check digit of 10, the check digit is 0.”

Other products don’t have ISBNs, but they do have universal product codes (UPCs), or to put it another way: those long strings of numbers you’ve seen underneath barcodes. Contained within those seemingly random codes are – you guessed it – check digits: “find an object with a 13-digit barcode. (If you are in the US, a 12-digit barcode will also work, if you imagine an extra 0 on the front of it),” writes Katie Steckles in New Scientist this month; “Add together the first, third, and fifth digits and so on, to get the sum of the odd-numbered digits; then, add up the even digits. If you triple the even sum, and then add it to the original odd sum, the total should be a multiple of 10, ending in 0.”

Credit cards have check digits, “meaning a website can tell you have entered it incorrectly before even checking with your bank,” Steckles explains; if you’re in the UK, the last element in your 10-digit NHS number is a check digit – to find it, just take the first nine digits; multiply the first by 10, the second by 9, the third by 8, and so on, and then add the results together. Divide the total by 11, and the remainder is your check digit (so, for example, an NHS number starting 555555555 would have to end in a 6 – because 50 + 45 + 40 + 35 + 30 + 25 + 20 + 15 + 10 = 270 = 24 × 11 + 6.)

Not foolproof – but useful

Check digits aren’t infallible – some algorithms can’t tell the difference between sequences like 1 and 00001, for example; others will catch incorrect digits, but miss swapped pairs. Even if the algorithm works perfectly, it might still fluke out and get the answer wrong – consider, for example, the barcode check digit algorithm: you’re working modulo 10, so there’s a one-in-ten chance it just works anyway.

But overall, check digits are a small cheat with a big payoff. They can save you hours of frustration wondering why your credit card details aren’t accepted, or give a quick way to check whether your car is sporting stolen VINs; they can provide an extraordinarily nerdy party trick, or ruin a hypothetical Floridian teen’s night. 

And, much to Hardy’s chagrin, it’s all thanks to number theory. Long live the queen of mathematics.

Deborah Bloomfield
Deborah Bloomfield

Related posts:

  1. Lebanon deported Reuters journalist after questioning
  2. Draghi promised to speak up for climate funding at G20, activist says
  3. TWIS: Humanity’s Brightest Cosmic Explosion Smashed Previous Record, Earth’s Rainy Season That Lasted 2 Million Years, And Much More This Week
  4. When You Push A Long Pole, How Long Does It Take The Other End To Move?

Source Link: Check Digits Are A Little Piece Of Number Theory You Use Every Day

Filed Under: News

Primary Sidebar

  • The Pinky Toe Has A Purpose And Most People Are Just Finding Out
  • What Is This Massive Heat-Emitting Mass Discovered Beneath The Moon’s Surface?
  • The Man Who Fell From Space: These Are The Last Words Of Cosmonaut Vladimir Komarov
  • How Long Can A Bird Can Fly Without Landing?
  • Earliest Evidence Of Making Fire Has Been Discovered, X-Rays Of 3I/ATLAS Reveal Signature Unseen In Other Interstellar Objects, And Much More This Week
  • Could This Weirdly Moving Comet Have Been The Real “Star Of Bethlehem”?
  • How Monogamous Are Humans Vs. Other Mammals? Somewhere Between Beavers And Meerkats, Apparently
  • A 4,900-Year-Old Tree Called Prometheus Was Once The World’s Oldest. Then, A Scientist Cut It Down
  • Descartes Thought The Pineal Gland Was “The Seat Of The Soul” – And Some People Still Do
  • Want To Know What The Last 2 Minutes Before Being Swallowed By A Volcanic Eruption Look Like? Now You Can
  • The Three Norths Are Moving On: A Once-In-A-Lifetime Alignment Shifts This Weekend
  • Spectacular Photo Captures Two Rare Atmospheric Phenomena At The Same Time
  • How America’s Aerospace Defense Came To Track Santa Claus For 70 Years
  • 3200 Phaethon: Parent Body Of Geminids Meteor Shower Is One Of The Strangest Objects We Know Of
  • Does Sleeping On A Problem Actually Help? Yes – It’s Science-Approved
  • Scientists Find A “Unique Group” Of Polar Bears Evolving To Survive The Modern World
  • Politics May Have Just Killed Our Chances To See A Tom Cruise Movie Actually Shot In Space
  • Why Is The Head On Beer Often White, When Beer Itself Isn’t?
  • Fabric Painted With Dye Made From Bacteria Could Protect Astronauts From Radiation On Moon
  • There Used To Be 27 Letters In The English Alphabet, Until One Mysteriously Vanished
  • Business
  • Health
  • News
  • Science
  • Technology
  • +1 718 874 1545
  • +91 78878 22626
  • [email protected]
Office Address
Prudour Pvt. Ltd. 420 Lexington Avenue Suite 300 New York City, NY 10170.

Powered by Prudour Network

Copyrights © 2025 · Medical Market Report. All Rights Reserved.

Go to mobile version