Everyday Learning العربية
MathCodes and secrets · Lesson 2 of 8 · 7 min

How a card number knows it's wrong.

Type one digit of your card number wrong and the website complains before it even contacts the bank. A 70-year-old formula is checking.

In this lesson

It's called the Luhn check.

Your notebook page

  • Double every second digit from the right.
  • Over 9? Subtract 9.
  • Valid if the total ends in 0.
  • Catches typos, not thieves.

Where you'll see it today

Card payments, IMEI phone numbers and some ID cards.

The course

Codes and secrets

Every lesson adds a part. Finish them all to build the Cipher wheel.

  1. 1Reading barcodesWhat a barcode actually says.
  2. 2Catching typosHow a card number knows it's wrong.
  3. 3Saying more with lessShrink a message without losing a letter.
  4. 4Shift ciphersCrack a 2,000-year-old secret.
  5. 5Clock mathWhat day is it 1,000 days from now?
  6. 6Strong passwordsHow long to guess your password?
  7. 7Codes that fix themselvesScratch a QR code. Still scans?
  8. 8Build a cipher wheelSend a message only a friend can read.
Open in the app Download on the App Store