Digital Root
calculator.
Add the digits of a whole number again and again until one digit is left.
- Digit sum
- 29
- Rounds of adding
- 3
- Multiplied to
- 0
Root 2 means 493,193 is not divisible by 3 or 9. It cannot be a perfect square, since squares only have roots 1, 4, 7 and 9.
Working
- 1Add the 6 digits4 + 9 + 3 + 1 + 9 + 3 = 29
- 2Add the digits of the sum2 + 9 = 11
- 3Add the digits of the sum1 + 1 = 2
- 4Check: the remainder after dividing by 9493,193 = 9 × 54,799 + 2, the root 2
493,193 ÷ 29 leaves 19, so it is not a Harshad number.
Numbers from 1 to 90 with root 2
The numbers 1 to 90 sit in nine columns, and every number in a column has the same root. The column for root 2 is filled, so you can see that every ninth number shares it.
Multiplying the digits instead
- 1Multiply the digits4 × 9 × 3 × 1 × 9 × 3 = 2,916
- 2Multiply the digits of the product2 × 9 × 1 × 6 = 108
- 3Multiply the digits of the product1 × 0 × 8 = 0
3 rounds of multiplying end at 0. Every product is exact, however many digits it has.
Check a sum by casting out nines
Check a list of numbers
Type or paste a column of whole numbers, for example from a spreadsheet, to get each digit sum and root.
| # | Number |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 |
Digital roots
| Number | Digit sum | Root |
|---|---|---|
| 1,729 | 19 | 1 |
| 65,536 | 25 | 7 |
| 2,026 | 10 | 1 |
| 123,456,789 | 45 | 9 |
How it's worked out
Add the digits of a number, then add the digits of that sum, and keep going until one digit remains. That digit is the digital root, and the number of rounds is the additive persistence. For 493,193 it takes 3 rounds and ends at 2.
OEIS A010888 gives a shortcut that needs no rounds at all. For any number above 0, subtract 1, take the remainder after dividing by 9, and add 1 back. Zero is the one number with root 0.
Here is why it works. Ten leaves 1 when you divide it by 9, and so do 100, 1,000 and every power of ten. So 2026, which is 2 thousands, 0 hundreds, 2 tens and 6 ones, leaves the same remainder as 2 + 0 + 2 + 6. Adding digits never changes the remainder, and 2026 = 9 × 225 + 1, so its root is 1. A remainder of 0 shows up as 9.
The same remainder gives the divisibility tests. A number is a multiple of 9 exactly when its root is 9, and a multiple of 3 when its root is 3, 6 or 9. For 493,193 the remainder is 2, so it is neither.
Multiplying the digits instead of adding them gives the multiplicative root. One 0 digit sends the product to 0 at once. For 39 the chain is 39 to 27, then 27 to 14, then 14 to 4, which is 3 rounds.
Worked examples
Priya checks a long multiplication by casting out nines
Priya worked out 4,568 × 7,896 by hand and got 36,068,928. The roots of the two numbers are 5 and 3. Their product, 5 × 3, reduces to 6, and her answer also has root 6, so it passes.
A pass is not proof. If she had swapped two digits and written 36,069,828, the root would still be 6 and the check would pass. A slip that changes one digit, as in 36,068,938, gives root 7 and fails, so that one gets caught.
Ade rules out a perfect square on a quiz
A quiz asks which of 100,856 and 945,729 is not a perfect square. The digits of 100,856 add to 20, and that reduces to 2. OEIS A056991 notes that every positive square has root 1, 4, 7 or 9, so 100,856 cannot be one.
945,729 has root 9, so the test leaves it open. The root can only rule numbers out. To prove that a number is a square, Ade still has to find its square root.
Leo follows the multiplicative persistence record
Leo read that 277,777,788,888,899 is the smallest number that needs 11 rounds of multiplying its digits, as listed in OEIS A003001. The first product is 4,996,238,671,872. The chain then runs 438,939,648, 4,478,976, 338,688, 27,648, 2,688, 768, 336, 54, 20, 0.
That makes 11 rounds, ending at 0. Adding the digits instead is quick: the 15 digits add to 110, and the root is 2.
Reading your result
The root is a remainder in disguise. A root of 1 to 8 is the remainder after dividing by 9. A root of 9 means the remainder is 0. So two numbers with the same root differ by a multiple of 9.
It can rule a square out, never in. Squares only have roots 1, 4, 7 and 9. A root of 2, 3, 5, 6 or 8 settles the matter at once, however many digits the number has.
Persistence stays small. The smallest numbers that need 0, 1, 2 and 3 rounds of adding are 0, 10, 19, 199 (OEIS A006050). The first to need 4 rounds has 23 digits.
A Harshad number needs the full digit sum. A Harshad, or Niven, number is divisible by its own digit sum: 18 has digit sum 9 and 18 ÷ 9 = 2. The root is not enough. 12 and 39 both have root 3, but 12 is Harshad and 39 is not, since 39 has digit sum 12.
| Rounds | Smallest number | Ends at |
|---|---|---|
| 1 | 10 | 0 |
| 2 | 25 | 0 |
| 3 | 39 | 4 |
| 4 | 77 | 8 |
| 5 | 679 | 6 |
| 6 | 6,788 | 0 |
| 7 | 68,889 | 0 |
| 8 | 2,677,889 | 0 |
| 9 | 26,888,999 | 0 |
| 10 | 3,778,888,999 | 0 |
| 11 | 277,777,788,888,899 | 0 |
Common mistakes
- Treating a pass as proof. MathWorld notes the check misses any slip that keeps the digit sum, such as swapped digits or an inserted 0. Writing 36,608,928 for 36,068,928 still gives root 6.
- Stopping at the digit sum. 9,875 has digit sum 29, but its root is 2, after 3 rounds.
- Writing 0 for a multiple of 9. For any number above 0 the root is 9, not 0, when 9 divides it.
- Reading root 1, 4, 7 or 9 as a square. Those roots only fail to rule a square out. Most numbers with them are not squares.
Questions people ask
Sources
- OEIS A010888: digital root of n
- OEIS A056991: numbers with digital root 1, 4, 7 or 9
- OEIS A006050: smallest number of additive persistence n
- OEIS A003001: smallest number of multiplicative persistence n
- OEIS A005349: Niven (or Harshad) numbers
- Eric W. Weisstein, Casting Out Nines, MathWorld
- Eric W. Weisstein, Digital Root, MathWorld