Israel 2016 Q3 - Summing digits repeatedly
Source: Israel National Olympiad 2016 Q3
August 7, 2019
sum of digitsnumber theoryDigitsmodular arithmeticdigit sum
Problem Statement
Denote by the sum of digits of . Given a positive integer , we consider the following process: We take the sum of digits , then take its sum of digits , then its sum of digits ... We continue this until we are left with a one-digit number.We call the number of times we had to activate the depth of .For example, the depth of 49 is 2, since , and the depth of 45 is 1, since .
[*] Prove that every positive integer has a finite depth, that is, at some point of the process we get a one-digit number.
[*] Define to be the minimal positive integer with depth . Find the residue of .
[*] Find the residue of .