Of Number Plate Mathematics

Old Zimbabwean Number plate mathematics for checksum letter

The old Zimbabwean number plate system (1971 to 2005 series) used the format 123-456X
Six digits and a suffix letter.

Crowd gathered around a vintage rusty blue car at an outdoor event 1954 Ford Prefect

The numbers worked like a counter, meaning you could get a rough idea of how recently a vehicle had been registered just by looking at the digits on the number plate. The older generation plates had smaller numbers and by the time the system was phased out in favour of the current registration format ABC 1234, the numbers had reached the 8xx-xxxZ range.

Growing up, in the 90s, I read an issue of the Automobile Association of Zimbabwe (AA Zimbabwe) magazine that left me with a fun fact which still lives rent-free in my head, even though no longer applicable.

AA Zimbabwe heritage motoring display with yellow event banners, a vintage car and roadside assistance services outside a building.

That suffix letter at the end of the number plate was not just some random alphabetical addition, nor did it indicate the make, model or place of registration. It was a checksum letter, arrived at through a mathematical calculation involving the numbers on the number plate.

The Modulus-23 check character system

The system is known as a Modulus-23 check character system.

The calculation was surprisingly simple:

  1. Combine digits into a single number
  2. Divide by 23 and note the remainder
  3. Convert remainder to letter of an alphabet sequence with 23 letters excluding I, O, Q.

I, O and Q were skipped because they are too easily mistaken for other characters (1, 0 and each other).

Remainder123456789101112
LetterABCDEFGHJKLM
Remainder131415161718192021220
LetterNPRSTUVWXYZ

The shortcut formula

There is an easier way to do the calculation without having to divide the entire six-digit number.

Because 1,000 leaves a remainder of 11 when divided by 23, we can use:

R = (11a + b) mod 23

Where:

  • a = the first three digits.
  • b = the last three digits.
  • R = the remainder, which determines the suffix letter.

Let’s take an actual number plate as an example:

Yellow rectangular number plate displaying 643-194 Y

643-194Y

11 × 643 + 194 = 7267
7267 ÷ 23 = 315 remainder 22
Remainder 22 = Y

And there you have it. The letter at the end of the number plate is mathematically accounted for.

You can try it with any of the old Zimbabwean number plates.

Six vintage yellow vehicle number plates displaying various alphanumeric registrations

Systems like this were common in British civil administration computing in the 1960s to 1980s. Governments relied on simple algorithms that could be checked by clerks with calculators, or by early mainframe databases, to catch mistyped or forged numbers without a lookup.

Now I’m curious what mathematical trick is embedded in the letter in our national ID numbers… 🤔

Leave a Reply