Related Searches
Definitions

# Casting out nines

Casting out nines is a sanity check to ensure that hand computations of sums, differences, products, and quotients of integers are correct. By looking at the digital roots of the inputs and outputs, the casting-out-nines method can help one check arithmetic calculations. The method is so simple that most schoolchildren can apply it without understanding its mathematical underpinnings.

## Examples

As the explanation can be hard for many to understand, below are examples for using casting out nines to check addition, subtraction, multiplication, and division.

$mathit\left\{3\right\} 2 mathit\left\{6\right\} 4,$ $Rightarrow$ $mathit\left\{6\right\},$* First, cross out all 9's and digits that total 9 in each addend (italicized).
$mathit\left\{8415\right\},$ $Rightarrow$ $0,$ Add up leftover digits for each addend until one digit is reached.
$2 mathit\left\{9\right\} 46,$ $Rightarrow$ $mathit\left\{3\right\},$ These new values are called excesses.
$underline\left\{+mathit\left\{3\right\} 20 mathit\left\{6\right\}\right\}$ $Rightarrow$ $2,$** Do to the excesses what you did to the addends, coming to a single digit.
$mathit\left\{1\right\} 7 mathit\left\{8\right\} 31,$ $biggDownarrow$ Now follow the same procedure with the sum, coming to a single digit.
$Downarrow$
$\left\{2\right\},$†† $Leftrightarrow$ $2,$ The excess from the sum should equal the final excess from the addends.

*2 and 4 add up to 6.
There are no digits left.
2, 4, and 6 make 12; 1 and 2 make 3.
**2 and 0 are 2.
††7, 3, and 1 make 11; 1 and 1 add up to 2.

### Subtraction

$mathit\left\{5643\right\},$ $Rightarrow$ $0\left(9\right),$ First, cross out all 9's and digits that total 9 in both minuend and subtrahend (italicized).
$underline\left\{-2mathit\left\{891\right\}\right\},$ $Rightarrow$ $-2,$ Add up leftover digits for each value until one digit is reached.
$mathit\left\{2\right\} 7 mathit\left\{52\right\},$ $biggDownarrow$ Now follow the same procedure with the difference, coming to a single digit.
$Downarrow$ Because subtracting 2 from zero gives a negative number, borrow a 9 from the minuend.
$\left\{7\right\},$ $Leftrightarrow$ $7,$ The difference between the minuend and the subtrahend excesses should equal the difference excess.

### Multiplication

$mathit\left\{5\right\} mathit\left\{4\right\} 8,$ $Rightarrow$ $8,$ First, cross out all 9's and digits that total 9 in each factor (italicized).
$underline\left\{times 62 mathit\left\{9\right\}\right\},$ $Rightarrow$ $8,$ Add up leftover digits for each multiplicand until one digit is reached.
$\left\{mathit\left\{3\right\} 44 mathit\left\{69\right\} 2\right\},$ $biggDownarrow$ Multiply the two excesses, and then add until one digit is reached.
$Downarrow$ Do the same with the product, crossing out 9's and getting one digit.
$\left\{1\right\},$ $Leftrightarrow$ $1,$* The excess from the product should equal the final excess from the factors.

*8 times 8 is 64; 6 and 4 are 10; 1 and 0 are 1

### Division

$8times$ $4+,$ $3,$ $Longrightarrow$ $8,$ Cross out all 9's and digits that total 9 in the divisor, quotient, and remainder.
$biggUparrow$ $Uparrow$ $Uparrow$ Add up all uncrossed digits from each value to a single digits.
$877,$ $r. 84,$ Multiply the divisor and quotient excesses, and add the remainder excess.
$314,$ $overline\left\{\right)mathit\left\{2754\right\}62\right\},$ $Longrightarrow$ $8,$ Do the same with the dividend, crossing out 9's and getting one digit.
(Nines are italicized).
The dividend excess should equal the final excess from the other values.

## How it works

Formally, casting out nines is a valid method of checking equations because of a property of modular arithmetic. Specifically, if x and x' (respectively, y and y') have the same remainder modulo 9, then so do x + y and x' + y', x − y and x' − y' and x × y and x' × y'.

For an equation utilizing only integers to be correct, the following must be true: the sum of the digits of the decimal writing of an integer has the same remainder, modulo 9, as this integer. Because of this, one can add all digits in the original number to obtain another number, and so on repeatedly until one gets a 1-digit number, which is necessarily equal to the original number. Also, nines can be tossed out before this, because 9 is equal to 0 modulo 9.

In a correct equation, one side equals the other. If the equation was correct before, performing the above operation on both sides preserves correctness. However, it is possible that two previously unequal integers will be identical modulo 9 (on average, a ninth of the time).

One should note that the operation does not work on fractions, since a given fractional number does not have a unique representation.

## History

Casting out nines was known to the Roman bishop Hippolytos as early as the third century. It was employed by Twelfth-century Hindu mathematicians. In his book Synergetics, R. Buckminster Fuller claims to have used casting out nines "before World War I. Fuller explains how to cast out nines and makes other claims about the resulting 'indigs,' but he fails to note that casting out nines can result in false positives.