Divisibility by 9: A Digit-Sum Shortcut
Here’s a classic puzzle with a beautiful answer rooted in modular arithmetic:
Problem: Devise a simple rule to test if any number is divisible by 9, and prove why it works.
The Rule
A number is divisible by 9 if and only if the sum of its digits is divisible by 9.
For example:
- 729 → , and is divisible by 9 → ✅
- 1234 → , and is not divisible by 9 → ❌
But why does this work?
Step-by-Step Proof (Base 10)
Let a number be written in decimal as:
We want to analyze . Notice:
So:
That is, and the sum of its digits are congruent modulo 9.
Therefore:
- So,
Final Answer
A number is divisible by 9 if and only if the sum of its digits is divisible by 9.