Divisibility by 9 via Digit Sum
The classic divisibility test for 9 is one of the most elegant results in elementary number theory — and it makes a perfect playground for practising biconditional proofs in the HSC Extension 2 course. By working through this proof, you’ll see how a simple algebraic rearrangement can uncover a deep modular relationship between a number and its digit sum, and how that one relationship makes both directions of the “if and only if” argument almost trivial.
Problem Statement
Prove that a three-digit number is divisible by if and only if the sum of its digits is divisible by .
Hints
- Let where are the digits.
- Rewrite this as to establish the relationship between and the digit sum.
- Then prove both directions of the biconditional using this relationship.
Solutions
We begin by giving the three-digit number a name and expressing it in terms of its digits. Let’s write
- Let be a three-digit number with digits .
- Let be the sum of digits.
The heart of the proof is to connect and in a way that reveals a multiple of . By splitting the and terms into and , we can factor out from most of the expression, leaving the digit sum behind:
Key Relationship: Rewrite :
This rearrangement tells us that and differ by a multiple of — specifically, . In the language of modular arithmetic, that means
- Therefore: , which means .
Now we have a single, clean congruence that instantly handles both directions of the biconditional.
For the forward direction (), assume divides — that is, . Because and are congruent modulo , must also be congruent to , so divides :
- Direction 1 (): If , then . If , then from , we get . Thus .
The reverse direction () is just the mirror image. If we start with dividing (), then the congruence forces , so must also divide :
- Direction 2 (): If , then . If , then from , we get . Thus .
With both implications established, the biconditional is proved.
- Both directions proven, so the biconditional holds.
- Note: This proof generalizes to all positive integers and divisibility by 9. The key is the modular relationship .
Takeaways
- The algebraic manipulation is the core trick — it shows that any number differs from its digit sum by a multiple of , so divisibility by depends purely on the digit sum.
- Once you have the congruence , both directions of the “if and only if” become one-step deductions from the definition of modular equivalence.
- The same technique works for any number of digits, because every power of is congruent to modulo — a fact that underpins the general divisibility rule for .
Further Readings
If you found this proof interesting, be sure to check out these relevant HSC booklets to sharpen your reasoning skills: