Digit-sum test for divisibility by 9 (and 3)
Statement
Let have digits so that . Then if and only if divides the digit sum ; the same statement holds with in place of .
Why is it true?
Every power of leaves remainder when divided by (since ), so shifting a digit to a higher place value never changes its contribution modulo — the whole number is congruent to the plain sum of its digits.
Proof sketch
Step 1. Show by induction that for every . Base case : . Inductive step: if , then (using ). So for all .
Step 2. Substitute into the place-value expansion: . So and its digit sum always leave the same remainder upon division by .
Step 3. Conclude: exactly when , which by Step 2 happens exactly when , i.e. exactly when divides the digit sum. Since and the same congruence also holds, the identical argument with in place of throughout proves the divisibility-by- version.
Topics that use this theorem
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- David M. Burton (2010). Elementary Number Theory
- John H. Conway, Richard K. Guy (1996). The Book of Numbers · DOI:10.1007/978-1-4612-4072-3