ARTE
BELEZA E BEM-ESTAR
ARTESANATO
CULTURA E HISTÓRIA
ENTRETENIMENTO
MEIO AMBIENTE
COMIDA E BEBIDAS
ENGENHARIA REVERSA
CIÊNCIAS
ESPORTES
TECNOLOGIA
TECNOLOGIA VESTÍVEL
Casting Out Nines
Mark

Criado por

Mark

20. agosto 2026FI
0
0
0
0
0

Casting Out Nines

A way to check arithmetic that takes seconds and catches most mistakes. Add up the digits of each number, and keep adding until one digit is left — that is the number's digital root. Do the same arithmetic on the roots that you did on the originals, reduce again, and the two answers must match. If they do not, the calculation is definitely wrong. If they do, it is probably right. That asymmetry is the whole character of the method, and it is the same character every checksum has ever had: a cheap test that proves failure conclusively and proves success only statistically. Medieval European arithmetic manuals teach it as standard practice, and it came to them with Hindu-Arabic numerals.
Iniciante
45 minutes

Instruções

1

Find digital roots

Reduce numbers to a single digit by repeated digit-summing.

  1. Take 4871: 4+8+7+1 = 20, then 2+0 = 2.
  2. Take 693: 6+9+3 = 18, then 1+8 = 9.
  3. Do a dozen more until it is quick.
Shortcut: while summing, drop any 9s and any digits adding to 9 — that is why it is called casting OUT nines. A root of 9 and a root of 0 behave identically here, which is the one fiddly convention to remember.

Materiais para este passo:

Graph PaperGraph Paper1 pad
Graphite Pencil SetGraphite Pencil Set1 conjunto
2

Check a multiplication

Do the same operation on the roots.

  1. Multiply 4871 × 693 by hand and get an answer.
  2. Take the roots: 2 and 9.
  3. Multiply those: 2 × 9 = 18, root 9.
  4. Reduce your full answer to its root and compare.
The roots must agree. Now deliberately change one digit in your answer and re-check — the roots will almost certainly disagree, and you have caught an error without redoing the multiplication.
3

Find what it cannot catch

Attack the checksum deliberately. This is the important step.

  1. Take a correct answer and SWAP two of its digits.
  2. Re-check the digital root.
  3. Now change a digit by exactly 9, or change a 0 to a 9.
Both pass. Transposing digits does not change their sum, so the commonest copying error in the world is completely invisible to this check — and any error that is a multiple of 9 slips through too. Roughly one random error in nine will pass unnoticed. A check that misses your most likely error is a serious limitation, not a footnote.
4

Understand why nine

The magic is a property of base ten, not of nine.

  1. Note that 10 ≡ 1 (mod 9), so 100 ≡ 1, 1000 ≡ 1, and so on.
  2. Therefore every digit contributes its face value regardless of position.
  3. The digit sum is congruent to the number itself, modulo 9.
Try the same trick with 11 instead: use alternating signs on the digits, because 10 ≡ −1 (mod 11). Casting out elevens catches transpositions, which casting out nines cannot — and that is exactly why real check-digit schemes use weighted sums rather than plain ones.
5

History and context

The method travels with the Hindu-Arabic numeral system. It is described by Indian mathematicians, transmitted through Arabic works, and appears in Fibonacci's Liber Abaci (1202) and in the abbaco manuals that taught merchants' sons to calculate. Before mechanical calculators, checking arithmetic was a daily necessity and this was the standard tool.

Its descendants are everywhere and they are better designed. The final digit of an ISBN, the check digit on a bank account or IBAN, the Luhn algorithm on every credit card number — all are checksums built on the same idea, but using weighted sums specifically chosen so that transposing adjacent digits DOES change the result. They learned from the weakness you found in step 3.

The philosophy generalises to all of error detection. A checksum is a lossy summary: it can prove a difference but not an identity. Parity bits, CRCs and cryptographic hashes all sit on the same spectrum, differing only in how hard it is to produce a collision — and the arms race from casting out nines to SHA-256 is entirely about making accidental or deliberate collisions harder.

A caution worth carrying: passing a checksum is weak evidence, and treating it as proof is a real failure mode in practice. The correct reading of a passed check is no error detected, not no error present.

Materiais

2

Blueprints relacionados

Estes blueprints compartilham conhecimento — técnicas, materiais ou princípios

CC0 Domínio Público

Este blueprint é liberado sob CC0. Você é livre para copiar, modificar, distribuir e usar este trabalho para qualquer finalidade, sem pedir permissão.

Apoie o Maker comprando produtos através do Blueprint, onde ele ganha uma Comissão Maker definida pelos vendedores, ou crie uma nova versão deste Blueprint e inclua-o como conexão no seu próprio Blueprint para compartilhar receita.

Discussão

(0)

Entrar para participar da discussão

Carregando comentários...