Divisibility by 9 via Digit Sum

#hsc-maths#proofs#medium

The classic divisibility test for 99—adding the digits and checking if the result is a multiple of 99—is more than a quick mental trick; it’s a beautiful application of algebra and modular arithmetic that directly connects to the HSC Extension 1 proofs syllabus. By unpacking a three-digit number into its place-value components, we can reveal exactly why the digit sum works and then prove the equivalence in both directions. Mastering this proof will strengthen your ability to construct biconditional arguments and recognise where modular relationships simplify the reasoning.

Problem Statement

Prove that a three-digit number is divisible by 99 if and only if the sum of its digits is divisible by 99.


Hints

Let N=100a+10b+cN = 100a + 10b + c where a,b,ca, b, c are the digits.

Rewrite this as N=9(11a+b)+(a+b+c)N = 9(11a + b) + (a + b + c) to establish the relationship between NN and the digit sum.

Then prove both directions of the biconditional using this relationship.


Solutions

Let N=100a+10b+cN = 100a + 10b + c be a three-digit number with digits a,b,ca, b, c.

Let S=a+b+cS = a + b + c be the sum of digits.

To see the link between NN and its digit sum, we’ll rewrite NN in a form that isolates multiples of 99, leaving the digit sum as a remainder-like term.

Key Relationship:

Rewrite NN:

N=100a+10b+c=(99a+a)+(9b+b)+c=9(11a+b)+(a+b+c)=9(11a+b)+S\begin{aligned} N &= 100a + 10b + c \\ &= (99a + a) + (9b + b) + c \\ &= 9(11a + b) + (a + b + c) \\ &= 9(11a + b) + S \end{aligned}

From this identity we see that the difference between NN and SS is a multiple of 99, which immediately gives us a modular equivalence. Therefore: NS=9(11a+b)N - S = 9(11a + b), which means NS(mod9)N \equiv S \pmod{9}.

With this core relationship in hand, proving the biconditional comes down to simple modular arithmetic.

Direction 1 (\Rightarrow): If 9N9|N, then 9S9|S.

If N0(mod9)N \equiv 0 \pmod{9}, then from NS(mod9)N \equiv S \pmod{9}, we get S0(mod9)S \equiv 0 \pmod{9}.

Thus 9S9|S.

Direction 2 (\Leftarrow): If 9S9|S, then 9N9|N.

If S0(mod9)S \equiv 0 \pmod{9}, then from NS(mod9)N \equiv S \pmod{9}, we get N0(mod9)N \equiv 0 \pmod{9}.

Thus 9N9|N.

Since we have shown both implications, the proof of the if-and-only-if statement is complete. \blacksquare

Note: This proof generalizes to all positive integers and divisibility by 9. The key is the modular relationship NS(mod9)N \equiv S \pmod{9}.


Takeaways

  • Reconstruct the full proof from the hint and the solution outline, and justify every transformation explicitly.
  • Check edge cases and verify where each assumption is used in the argument.

Further Readings

If you found this proof interesting, be sure to check out these relevant HSC booklets to sharpen your reasoning skills: HSC Proofs, HSC Last Resorts, HSC Trigonometry

Written by Vu Hung Nguyen

Mathematics Educator · LinkedIn · About