The magic behind the digital root and its connection with modulo 9 relies on some very neat properties of our base-10 number system. Here's why it works:
1. Decimal Representation and Modulo 9
Any integer ( n ) can be written in its decimal (base-10) form as:
[
n = d_k \times 10^k + d_{k-1} \times 10^{k-1} + \cdots + d_1 \times 10 + d_0,
]
where each ( d_i ) is a digit (0 through 9).
2. Key Observation: ( 10 \equiv 1 \pmod{9} )
Notice that in modulo 9 arithmetic:
[
10 \equiv 1 \ (\text{mod } 9)
]
because (10 - 1 = 9), which is divisible by 9.
Since (10 \equiv 1 \pmod{9}), every power of 10 is also equivalent to 1 modulo 9:
[
10^k \equiv 1^k \equiv 1 \ (\text{mod } 9)
]
3. Sum of the Digits and Congruence
Using the above observation, substitute into the decimal expansion of ( n ):
[
n = d_k \times 10^k + d_{k-1} \times 10^{k-1} + \cdots + d_1 \times 10 + d_0
]
Taking this equation modulo 9:
[
n \equiv d_k \times 1 + d_{k-1} \times 1 + \cdots + d_1 \times 1 + d_0 \ (\text{mod } 9)
]
[
n \equiv d_k + d_{k-1} + \cdots + d_1 + d_0 \ (\text{mod } 9)
]
This tells us that a number is congruent to the sum of its digits modulo 9.
4. Iterating the Process
-
First Sum:
When you sum the digits once, you get a number that's congruent to ( n ) modulo 9.
-
Repeated Sums:
If the result is more than one digit, summing those digits again yields another number that's still congruent to the original number modulo 9. Repeating this process eventually leads to a single digit, known as the digital root.
5. Special Case for 0
- When ( n = 0 ), the digital root is 0.
- For any nonzero ( n ), if ( n \mod 9 ) equals 0, it implies that the sum of the digits is a multiple of 9, so the process eventually yields 9 as the digital root (instead of 0).
Summary
-
Why it Works:
The digital root process works because of the congruence ( 10 \equiv 1 \pmod{9} ). This equivalence forces every power of 10 to behave like 1 modulo 9, so the original number ( n ) is congruent to the sum of its digits modulo 9.
-
Result:
By reducing the number via its digit sum repeatedly, you're essentially finding the unique number from 1 to 9 (for nonzero numbers) that is congruent to ( n ) modulo 9. This is why the trick of using ( n \mod 9 ) (with the special case that an answer of 0 translates to a digital root of 9) works perfectly for finding the digital root.
I hope this clarifies why the method works!