Samiksha Jaiswal (Editor)

Digital root

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The digital root (also repeated digital sum) of a non-negative integer is the (single digit) value obtained by an iterative process of summing digits, on each iteration using the result from the previous iteration to compute a digit sum. The process continues until a single-digit number is reached.

Contents

For example, the digital root of 65,536 is 7, because 6 + 5 + 5 + 3 + 6 = 25 and 2 + 5 = 7.

Digital roots can be calculated with congruences in modular arithmetic rather than by adding up all the digits, a procedure that can save time in the case of very large numbers.

Digital roots can be used as a sort of checksum, to check that a sum has been performed correctly. If it has, then the digital root of the sum of the given numbers will equal the digital root of the sum of the digital roots of the given numbers. This check, which involves only single-digit calculations, can catch many errors in calculation.

Digital roots are used in Western numerology, but certain numbers deemed to have occult significance (such as 11 and 22) are not always completely reduced to a single digit.

The number of times the digits must be summed to reach the digital sum is called a number's additive persistence; in the above example, the additive persistence of 65,536 is 2.

Significance and formula of the digital root

It helps to see the digital root of a positive integer as the position it holds with respect to the largest multiple of 9 less than the number itself. For example, the digital root of 11 is 2, which means that 11 is the second number after 9. Likewise, the digital root of 2035 is 1, which means that 2035 − 1 is a multiple of 9. If a number produces a digital root of exactly 9, then the number is a multiple of 9.

With this in mind the digital root of a positive integer n may be defined by using floor function x , as

d r ( n ) = n 9 n 1 9 .

Abstract multiplication of digital roots

The table below shows the digital roots produced by the familiar multiplication table in the decimal system.

The table shows a number of interesting patterns and symmetries and is known as the Vedic square.

Formal definition

Let S ( n ) denote the sum of the digits of n and let the composition of S ( n ) be as follows:

S 1 ( n ) = S ( n ) ,     S m ( n ) = S ( S m 1 ( n ) ) ,   for   m 2.

Eventually the sequence S 1 ( n ) , S 2 ( n ) , S 3 ( n ) , becomes a one digit number. Let S ( n ) (the digital sum of n ) represent this one digit number.

Example

Let us find the digital sum of 1853 .

S ( 1853 ) = 17 S ( 17 ) = 8

Thus,

S 2 ( 1853 ) = 8.

For simplicity let us agree simply that

S ( 1853 ) = d r ( 1853 ) = 8.

Proof that a constant value exists

How do we know that the sequence S 1 ( n ) , S 2 ( n ) , S 3 ( n ) , eventually becomes a one digit number? Here's a proof:

Let n = d 1 + 10 d 2 + + 10 m 1 d m , for all i , d i is an integer greater than or equal to 0 and less than 10. Then, S ( n ) = d 1 + d 2 + + d m . This means that S ( n ) < n , unless d 2 , d 3 , , d m = 0 , in which case n is a one digit number. Thus, repeatedly using the S ( n ) function would cause n to decrease by at least 1, until it becomes a one digit number, at which point it will stay constant, as S ( d 1 ) = d 1 .

Congruence formula

The formula is:

dr ( n ) = { 0 if   n = 0 , 9 if   n 0 ,   n   0 ( mod 9 ) , n   m o d   9 if   n 0 ( mod 9 )

or,

dr ( n ) = 1   +   ( ( n 1 )   m o d   9 ) .  

To generalize the concept of digital roots to other bases b, one can simply change the 9 in the formula to b - 1.

(sequence A010888 in the OEIS)

The digital root is the value modulo 9 because 10 1 ( mod 9 ) , and thus 10 k 1 k 1 ( mod 9 ) , so regardless of position, the value mod 9 is the same – a 100 a 10 a ( mod 9 ) – which is why digits can be meaningfully added. Concretely, for a three-digit number,

dr ( a b c ) a 10 2 + b 10 + c 1 a 1 + b 1 + c 1 a + b + c ( mod 9 ) .

To obtain the modular value with respect to other numbers n, one can take weighted sums, where the weight on the kth digit corresponds to the value of 10 k modulo n, or analogously for b k for different bases. This is simplest for 2, 5, and 10, where higher digits vanish (since 2 and 5 divide 10), which corresponds to the familiar fact that the divisibility of a decimal number with respect to 2, 5, and 10 can be checked by the last digit (even numbers end in 0, 2, 4, 6, or 8).

Also of note is the modulus 11: since 10 1 ( mod 11 ) , and thus 10 2 ( 1 ) 2 1 ( mod 11 ) , taking the alternating sum of digits yields the value modulo 11.

Some properties of digital roots

The digital root of a number is zero if and only if the number is itself zero.

d r ( n ) = 0 n = 0.

The digital root of a number is a positive integer if and only if the number is itself a positive integer.

d r ( n ) > 0 n > 0.

The digital root of n is n itself if and only if the number has exactly one digit.

d r ( n ) = n n { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } .

The digital root of n is less than n if and only if the number is greater than or equal to 10.

d r ( n ) < n n 10.

The digital root of a + b is digital root of the sum of the digital root of a and the digital root of b .

d r ( a + b ) = d r ( d r ( a ) + d r ( b ) ) .

The digital root of a - b is congruent with the difference of the digital root of a and the digital root of b modulo 9.

d r ( a b ) d r ( a ) d r ( b ) ( mod 9 ) .

Especially, we can define the digital root of minus n as follows:

d r ( n ) d r ( n ) ( mod 9 ) .

The digital root of a × b is digital root of the product of the digital root of a and the digital root of b .

d r ( a × b ) = d r ( d r ( a ) × d r ( b ) ) .
  • The digital root of a nonzero number is 9 if and only if the number is itself a multiple of 9.
  • d r ( n ) = 9 n = 9 m       for   m = 1 , 2 , 3 , .
  • The digital root of a nonzero number is a multiple of 3 if and only if the number is itself a multiple of 3.
  • d r ( n ) = 3 n = 9 m + 3   for   m = 0 , 1 , 2 , , d r ( n ) = 6 n = 9 m + 6   for   m = 0 , 1 , 2 , , d r ( n ) = 9 n = 9 m   for   m = 1 , 2 , 3 , .
  • The digital root of a factorial ≥ 6! is 9.
  • d r ( n ! ) = 9 n 6.
  • The digital root of a square is 1, 4, 7, or 9. Digital roots of square numbers progress in the sequence 1, 4, 9, 7, 7, 9, 4, 1, 9.
  • The digital root of a perfect cube is 1, 8 or 9, and digital roots of perfect cubes progress in that exact sequence.
  • The digital root of a prime number (except 3) is 1, 2, 4, 5, 7, or 8.
  • The digital root of a power of 2 is 1, 2, 4, 5, 7, or 8. Digital roots of the powers of 2 progress in the sequence 1, 2, 4, 8, 7, 5. This even applies to negative powers of 2; for example, 2 to the power of 0 is 1; 2 to the power of -1 (minus one) is .5, with a digital root of 5; 2 to the power of -2 is .25, with a digital root of 7; and so on, ad infinitum in both directions. This is because negative powers of 2 share the same digits (after removing leading zeroes) as corresponding positive powers of 5, whose digital roots progress in the sequence 1, 5, 7, 8, 4, 2.
  • The digital root of a power of 5 is 1, 2, 4, 5, 7 or 8. Digital roots of the powers of 5 progress in the sequence 1, 5, 7, 8, 4, 2. This even applies to negative powers of 5; for example, 5 to the power of 0 is 1; 5 to the power of -1 (minus one) is .2, with a digital root of 2; 5 to the power of -2 is .04, with a digital root of 4; and so on, ad infinitum in both directions. This is because the negative powers of 5 share the same digits (after removing leading zeroes) as corresponding positive powers of 2, whose digital roots progress in sequence 1, 2, 4, 8, 7, 5.
  • The digital roots of powered numbers progress in sequence (only certain for positive powers, although in for some exceptions it also may occur for negative powers), and this is because of one of the previously shown properties. As the digital root of a b is congruent with the multiple of the digital root of a and the digital root of b modulo 9, the digital root of a a will also do it. So, for example, as shown above, powers of 2 will follows the sequence 1, 2, 4, 8, 7, 5; Powers of 47 (whose digital root is 2) will also follow this sequence. The very sequence follows this rule, and is appliable to any othe number.
  • d r ( a n ) d r n ( a ) ( mod 9 ) .
  • The digital root of an even perfect number (except 6) is 1.
  • The digital root of a centered hexagram, or star number is 1 or 4. Digital roots of star numbers progress in the sequence 1, 4, 1.
  • The digital root of a centered hexagonal number is 1 or 7, their digital roots progressing in the sequence 1, 7, 1.
  • The digital root of a triangular number is 1, 3, 6 or 9. Digital roots of triangular numbers progress in the sequence 1, 3, 6, 1, 6, 3, 1, 9, 9, which is palindromic after the first eight terms.
  • The digital root of Fibonacci numbers is a repeating pattern of 1, 1, 2, 3, 5, 8, 4, 3, 7, 1, 8, 9, 8, 8, 7, 6, 4, 1, 5, 6, 2, 8, 1, 9.
  • The digital root of Lucas numbers is a repeating pattern of 2, 1, 3, 4, 7, 2, 9, 2, 2, 4, 6, 1, 7, 8, 6, 5, 2, 7, 9, 7, 7, 5, 3, 8.
  • The digital root of the product of twin primes, other than 3 and 5, is 8. The digital root of the product of 3 and 5 (twin primes) is 6.
  • In other bases

    This article is about the digital root in decimal or base ten, hence it is the number mod 9. It is nothing different as the number converted to base 9 and then only the last digit taken. In other radixes the digital root is number mod (base-1) so in base 12 a digital root of a number is the number mod 11 (Ɛduod), for example, 1972duod is 1 + 9 + 7 + 2 = 19 = 17duod which is 1 + 7 = 8, while in decimal the root of the same number (3110) is 5; and in base 16 a digital root of a number is the number mod 15 (0xF), for example, 0x7DF is 7 + 13 + 15 = 35 = 0x23 which is 2 + 3 = 5, while in decimal the root of the same number (2015) is 8.

    References

    Digital root Wikipedia