HOW THE DIGITAL WORLD REALLY WORKS / CHAPTER 02

The Secret Mathematics of Everyday Numbers

Predict • Build • Test • Explain • Improve

These are local educational experiments. Use the supplied fictional examples, not personal, financial, or identity information. Nothing is transmitted.

A. Luhn number detective

Change one digit or swap two neighbors. Does the rule notice?


B. Weighted-sum checker

The first twelve digits use alternating weights 1 and 3; the last is the check digit.


C. Invent a lab label

Our imaginary library uses LAB- followed by six digits and a check digit.




Code workshop

Edit a self-contained JavaScript example. Code runs in a sandboxed iframe without network access. Select a project and try the supplied sample.

A mathematical pass is not evidence of issuance, ownership, identity or authorization.

Return to the companion index