## Casting Out Nines (and Elevens and Sevens . . .)

23 July 2009
Most of you probably know (or knew at one time) the trick from pre-calculator days for deciding quickly whether a number is divisible by 9. You add up all the digits, and if the result is divisible by 9, then so was the original number. If you like, you can repeat the process, just summing the digits until only a one-digit number remains; if you started with a multiple of 9, the number you get will be a 9; otherwise, it won’t. I’ve heard that this process is well-known to numerologists under the name “casting out nines”.
What you may not know is that the same rule tests for divisibility by 3, and that a very similar rule tests for divisibility by 11.
Direct Digit Casting for 3 and 9: Start with a number. Add up the digits to get a new number. (Repeat as desired.) The original number is divisible by 3 (or 9) if and only if the new number is divisible by 3 (or 9).
Alternate Digit Casting for 11: Start with a number. Working from right to left, alternately add and subtract the digits. (Repeat as desired.) The original number is divisible by 11 if and only if the new number is divisible by 11.
Examples:
$2345823$ is divisible by 9 because $3+2+8+5+4+3+2=27$ is divisible by 9.
$9471282$ is divisible by 3 but not by 9, because $2+8+2+1+7+4+9=33$ is divisible by 3 but not by 9.
$1238537$ is not divisible by 3, because $7+3+5+8+3+2+1=29$ is not divisible by 3.
$7328519$ is divisible by 11 because $9-1+5-8+2-3+7=11$ is divisible by 11.
$9342886$ is not divisible by 11 because $6-8+8-2+4-3+9=14$ is not divisible by 11.
So what is going on? Why does this work? Are there other rules like this?

Most of you probably know (or knew at one time) the trick from pre-calculator days for deciding quickly whether a number is divisible by 9. You add up all the digits, and if the result is divisible by 9, then so was the original number. If you like, you can repeat the process, just summing the digits until only a one-digit number remains; if you started with a multiple of 9, the number you get will be a 9; otherwise, it won’t. I’ve heard that this process is well-known to numerologists under the name “casting out nines”.

What you may not know is that the same rule tests for divisibility by 3, and that a very similar rule tests for divisibility by 11.

Direct Digit Casting for 3 and 9: Start with a number. Add up the digits to get a new number. (Repeat as desired.) The original number is divisible by 3 (or 9) if and only if the new number is divisible by 3 (or 9).

Alternate Digit Casting for 11: Start with a number. Working from right to left, alternately add and subtract the digits. (Repeat as desired.) The original number is divisible by 11 if and only if the new number is divisible by 11.

Examples

• $2345823$ is divisible by 9 because $3+2+8+5+4+3+2=27$ is divisible by 9.
• $9471282$ is divisible by 3 but not by 9, because $2+8+2+1+7+4+9=33$ is divisible by 3 but not by 9.
• $1238537$ is not divisible by 3, because $7+3+5+8+3+2+1=29$ is not divisible by 3.
• $7328519$ is divisible by 11 because $9-1+5-8+2-3+7=11$ is divisible by 11.
• $9342886$ is not divisible by 11 because $6-8+8-2+4-3+9=14$ is not divisible by 11.

So what is going on? Why does this work? Are there other rules like this?