Guest User

Untitled

a guest
Jan 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. 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.
  2.  
  3. For example, the digital root of:
  4.  
  5. ```
  6. 17 => 8 # (because 1 + 7 = 8 and 8 is a single digit number)
  7. ```
  8.  
  9. ```
  10. 182 => 2 # (because 1 + 8 + 2 = 11, 11 is NOT a single digit number, so we add 1 + 1 = 2. 2 IS a single digit so we're done!)
  11. ```
  12. Let's take a closer look at the 182 example.
  13.  
  14. Its also true that:
  15.  
  16. ```
  17. 18 + 2 = 20
  18. 2 + 0 = 2
  19. ```
  20.  
  21. So it doesn't matter if you add up each single constituent digit until you get a sum that is less than 10 (i.e. a single digit) OR if you had the last digit to the remaining number (i.e. 2 + 18) until you get to a single digit number. Either approach works.
Add Comment
Please, Sign In to add comment