[UVA] 11332 - Summing Digits
Problem J: Summing DigitsFor a positive integer n, let f(n) denote the sum of the digitsof n when represented in base 10. It is easy to see that the sequence ofnumbers n, f(n), f(f(n)), f(f(f(n))), ... eventually becomes a single digitnumber that repeats forever. Let this singl...