Digit Sum Rule (mod 9)
Every integer is congruent modulo to the sum of its decimal digits, because . It is used for the divisibility tests by and and for the old check of arithmetic known as casting out nines.
LaTeX
n\equiv S(n)\pmod 9Variables
- integer
- sum of the decimal digits of n
Example
Find .
- , and .
- Check: .
Answer: .