Proofs · Chapter 6

Divisibility Tests

A number and its digit sum leave the same remainder on division by 9, and a swap of two digits is always off by a multiple of 9. See why for any number.

Home › Calculators › Proofs › Divisibility Tests

Opens on Chapter 6’s example: the jam order: 168 jars, 6 a box, 4 boxes a crate.

Casting out nines on a receipt (optional)
A product near a square (optional)
Enter your own case, then press Work it out.

How it works

100a + 10b + c = 99a + 9b + (a + b + c): a multiple of 9 plus the digit sum. The tool writes your number that way, so its remainders by 9 and by 3 are certain, not tested. It lists every swap of two neighboring digits with its change (always 9 × something) and casts out nines on a receipt, showing what the test catches and what it misses.

From the book, Chapter 6. 168 = 6 × 4 × 7: 28 boxes of 6. 7,524 has digit sum 18, so it is 9 × 836. A total typed 3,410 for 3,140 is off by 270 = 9 × 30. The receipt’s parts cast out to 2 and its total $25.40 to 2; typed as $25.30 it leaves 1 and is caught, typed as $24.50 it leaves 2 and slips through. 49 × 51 = 50² − 1 = 2,499. The book and every chapter’s tool →

Tests and proofs. When a tool tries cases, it tells you how many: a test of a million cases is still evidence, not a proof, because it says nothing about the cases it didn’t try. When an answer is proved (a count, a check digit, a complete list of every case, an algebra step that holds for every value), the page says so and why. Numbers can be typed as 1,200, −7, 3/4 or 0.05; formulas as 2^n − 1, n(n + 1)/2, n², C(n, 4) (choices of 4 from n), n! or sum(2k − 1) (the terms for k = 1 to n). Everything stays in your browser: no sign-up, nothing stored or sent.