Let represent the sum of the digits of n in base 10
Find
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let n = 4 1 2 2 0 2 0 . We first want to find how many digits n has. We could estimate some powers of 4 1 2 and compare these to powers of ten, but we don't actually even need to do that.
Since 4 1 2 < 1 0 3 , we have 4 1 2 2 0 2 0 < 1 0 6 0 6 0 , so that n has at most 6 0 6 0 digits.
The largest possible d ( n ) would be obtained if all these digits were equal to 9 ; in other words d ( n ) ≤ 9 × 6 0 6 0 = 5 4 5 4 0 .
This has 5 digits. So d ( d ( n ) ) ≤ 9 × 5 = 4 5 (we could be more careful bounding this, but again we don't need to be in this case).
The largest digit sum of any positive integer less than or equal to 4 5 is d ( 3 9 ) = 1 2 . Therefore d ( d ( d ( n ) ) ) ≤ 1 2 .
Now, note that d ( x ) ≡ x ( m o d 9 ) for any positive integer x .
We have 4 1 2 ≡ 7 ( m o d 9 ) , and that 7 3 ≡ 1 .
So 4 1 2 2 0 1 9 ≡ 1 (since 2 0 1 9 is a multiple of 3 ).
Finally, n = 4 1 2 2 0 2 0 ≡ 7 , so d ( d ( d ( n ) ) ) ≡ 7 ( m o d 9 ) as well. This, together with the fact d ( d ( d ( n ) ) ) ≤ 1 2 , means that we must have d ( d ( d ( n ) ) ) = 7 .