Logo
Published on

Divisibility by 9 via Digit Sum

Authors
  • avatar
    Name
    Vu Hung
    Twitter

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.

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}

Therefore: NS=9(11a+b)N - S = 9(11a + b), which means NS(mod9)N \equiv S \pmod{9}.

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.

Both directions proven, so the biconditional holds. \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:


Connect with me

If you're eager for more HSC Maths insights, be sure to check out my Website - Vu's Maths Hub. For deeper dives and regular tips, join my GitHub. Let's tackle these challenging math problems together! You can also catch my daily math content on YouTube - HSC Maths Extension 1+2.