Introduction
The Sum of Digits and Digital Root patterns let you reduce large numbers to a single-digit representative quickly. They're useful for divisibility checks (especially 3 and 9), checksum problems, and simplifying repeated-sum tasks on exams.
Pattern: Sum of Digits / Digital Root
Pattern
The digital root of a number is the single-digit value obtained by iteratively summing its digits until one digit remains. Use sum-of-digits to test divisibility by 3 and 9, and use the modular formula for fast calculation.
- Sum of digits (S): For n with decimal digits d_k...d_1d_0, S(n) = d_0 + d_1 + ... + d_k.
- Digital root (DR): Repeatedly apply S until result is a single digit (0-9).
- Fast modular formula:
For n > 0,DR(n) = 1 + ((n - 1) mod 9). For n = 0,DR(0) = 0. - Divisibility tests using digit sum:
- If S(n) is divisible by 3 → n divisible by 3.
- If S(n) is divisible by 9 → n divisible by 9.
- Casting out 9s: Subtracting 9 from a digit-sum does not change remainder mod 9; useful for simplifying large digit sums mentally.
- Relation to mod 9: Digital root (except when result 9) corresponds to n mod 9; specifically DR(n) = 0 when n ≡ 0 (mod 9) and DR(n) = n mod 9 otherwise (or use the 1+((n-1) mod 9) formula).
Step-by-Step Example
Question
(a) Find the digital root of 987654.
(b) Using the sum-of-digits, decide whether 987654 is divisible by 3 and by 9.
Solution
-
Step 1: Compute the sum of digits:
S(987654) = 9 + 8 + 7 + 6 + 5 + 4 = 39.
-
Step 2: Reduce to digital root (iterative method):
S(39) = 3 + 9 = 12.
S(12) = 1 + 2 = 3.
Therefore, the digital root DR(987654) = 3. -
Step 3: Using modular formula (quick check):
DR = 1 + ((987654 - 1) mod 9). Compute 987654 mod 9: since S = 39 and 39 mod 9 = 3, we get DR = 3 (matches iterative result).
-
Step 4: Divisibility conclusions:
Since DR = 3 (i.e., sum-of-digits = 39 is divisible by 3 but not by 9), 987654 is divisible by 3 but not by 9.
-
Final Answer:
(a) Digital root = 3.
(b) Divisible by 3: Yes. Divisible by 9: No. -
Quick Check:
Verify: 987654 ÷ 3 = 329218 (integer). 987654 ÷ 9 = 109739.333... (not integer) → conclusions confirmed. ✅
Quick Variations
1. Missing digit problems: If a number with unknown digit x has sum-of-digits S and must be divisible by 9, pick x so that (S + x) ≡ 0 (mod 9).
2. Negative numbers: Use absolute value for digit-sum and digital root.
3. Base-b generalization: Digital root ideas extend to other bases using modulus (b-1) instead of 9.
Trick to Always Use
- Step 1 → Compute digit-sum; if large, cast out 9s (subtract 9 repeatedly) to shrink the number quickly.
- Step 2 → Use DR = 1 + ((n - 1) mod 9) for immediate single-step result when comfortable with modulus.
- Step 3 → For missing-digit divisibility by 3 or 9, solve (known sum + x) ≡ 0 (mod 3 or 9) to find x quickly.
Summary
Summary
- Use sum-of-digits to quickly determine divisibility by 3 and 9.
- Compute the digital root by repeatedly summing the digits until one digit remains.
- Use the fast formula DR(n) = 1 + ((n - 1) mod 9) for instant single-digit results.
- For missing-digit problems, set up congruences (mod 3 or mod 9) using the digit sum.
Example to remember:
The number 987654 has digit-sum 39 → digital root 3 → divisible by 3 but not by 9.
