Digit sums and digital roots: let the digits do the dividing
Divide 25 by 9 and the remainder is 7. Divide 43 by 9 and it is 7 again. So is the remainder of 151. Now add the digits of each number: 2 + 5, 4 + 3, 1 + 5 + 1. Each time you get 7.
This is the whole idea. The sum of a number's digits leaves the same remainder on division by 9 as the number itself. It lets you check a calculation, strike out options, and answer questions about digit sums without long working.
The digital root
Add the digits of a number. If the result has more than one digit, add again. Stop when one digit is left. That digit is the digital root.
- 578: 5 + 7 + 8 = 20, then 2 + 0 = 2. The root is 2. And 578 = 9 × 64 + 2, so the remainder on division by 9 is also 2.
- 486: 4 + 8 + 6 = 18, then 1 + 8 = 9. A root of 9 means the remainder is 0. Indeed 486 = 9 × 54.
Why does it work? 10, 100 and 1000 each leave 1 when divided by 9. So a digit in any place adds just itself to the remainder.
There is a shortcut called casting out nines. While adding, throw away any 9, and any digits that add up to 9. In 4927, drop the 9, and drop 2 and 7 together. Only 4 is left, so the root is 4.
Checking a calculation
Put the roots in place of the numbers and do the same calculation. The root of the answer must agree.
For a sum, add the roots. 268 + 475 = 743? The roots are 7 and 7. They add to 14, which gives 5. And 743 gives 7 + 4 + 3 = 14, which is 5. It agrees.
For a product, multiply the roots. Suppose 123 × 456 is one of 56188, 55088, 56088 and 56098. All four end in 8, so the last digit does not help. The roots of 123 and 456 are 6 and 6. 6 × 6 = 36, and 36 has root 9. The roots of the options are 1, 8, 9 and 1. Only 56088 fits.
One caution. If the roots do not agree, the answer is certainly wrong. If they agree, the answer is probably right, but not proved: 56808 also has root 9.
Perfect squares
Square each root from 1 to 9 and take the root again. Only four values come out: 1, 4, 7 and 9. So a number whose root is 2, 3, 5, 6 or 8 can never be a perfect square.
- 4562: the digits add to 17, root 8. It is not a square.
- 5329: the digits add to 19, then 10, then 1. It passes, and it is 73 × 73.
Passing is not proof. 13 has root 4 and is not a square. The test only rejects.
Questions on the sum of the digits
UPSC asks these directly. Three ways cover them.
Match the root. The sum of the digits has the same root as the number. A 9-digit number has every digit 1 and is multiplied by itself. What is the sum of the digits of the result: 64, 80, 81 or 100? The number has root 9, so its square has root 9 × 9 = 81, which is 9 again. The digit sum must have root 9 too. Only 81 does. The full product is 12345678987654321, and its digits do add up to 81.
Write it out. For what n is the sum of the digits of 10^n + 1 equal to 2? Try it: 11, 101, 1001. There is always a 1 at each end and zeros in between. When n = 0 the number is 1 + 1 = 2. So it holds for every whole number n.
Fix the first digit and count. How many integers from 100 to 400 have digits that add up to 5? In the 100s the other two digits add up to 4: 04, 13, 22, 31, 40, which is 5 numbers. In the 200s they add up to 3, which gives 4 numbers. In the 300s they add up to 2, which gives 3 numbers. 400 has digit sum 4 and does not count. The total is 5 + 4 + 3 = 12. Two digits that add up to k, with k no more than 9, can be chosen in k + 1 ways.
Summary
| Task | What to do | Example |
|---|---|---|
| Digital root | Add the digits until one is left | 578 → 20 → 2 |
| Remainder on division by 9 | It is the root; a root of 9 means 0 | 486 → 18 → 9, remainder 0 |
| Check a sum | Add the roots | 7 + 7 = 14 → 5, and 743 → 5 |
| Check a product | Multiply the roots | 6 × 6 = 36 → 9, and 56088 → 9 |
| Reject a square | Root must be 1, 4, 7 or 9 | 4562 → 8, not a square |
| Digit sum of a result | It has the same root as the result | nine 1s squared → 81 |
| Count numbers with digit sum k | Fix the first digit, count the rest | 100 to 400, sum 5: 12 numbers |
Where students slip
- Stopping too early. 22 is the digit sum of 7384. The digital root is 2 + 2 = 4.
- Giving 9 as a remainder. A root of 9 means the remainder is 0.
- Treating a match as proof. Roots do not catch two digits swapped, or an error of exactly 9.
- Calling a number a perfect square because its root is 1, 4, 7 or 9. The test only rules numbers out.
- Forgetting the end of a range. In "700 to 1000", check 1000 as well, and check whether the starting number counts.
How to practise
Take any five numbers from a newspaper and find their digital roots, casting out nines as you go. Aim for three seconds a number. Then multiply two 2-digit numbers on paper and check the product with roots. Do this for a week and the check becomes automatic. Last, solve the past UPSC questions on digit sums, and decide first which of the three ways fits: match the root, write it out, or fix the first digit and count.