For each positive integer , is the sum of the digits of . For example . Find the value of
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 T ( n ) mean the number of n 's digits. For example: T ( 2 0 1 7 ) = 4 .
Since T ( 4 4 4 4 4 4 4 4 ) < T ( 1 0 0 0 0 4 4 4 4 ) = T ( ( 1 0 4 ) 4 4 4 4 = 1 0 1 7 7 7 6 ) = 1 7 7 7 7 , it is clear that S ( 4 4 4 4 4 4 4 4 ) < 1 7 7 7 7 ∗ 9 = 1 5 9 9 9 3 .
Therefore S ( S ( 4 4 4 4 4 4 4 4 ) ) < S ( 9 9 9 9 9 ) , because the sum of the digits of 9 9 9 9 9 is at least as big as the S ( . ) of any other number less than 1 5 9 9 9 3 . S ( 9 9 9 9 9 ) = 4 5 .
From that S ( S ( S ( 4 4 4 4 4 4 4 4 ) ) ) is at most S ( 3 9 ) = 1 2 . (Because 3 9 has the highest S ( . ) of any number less that 4 5 . )
We also know that if we divide S ( S ( S ( 4 4 4 4 4 4 4 4 ) ) ) by 9 , the remainder is the same as the remainder upon dividing 4 4 4 4 4 4 4 4 by 9 .
Since 4 4 4 4 ≡ 7 m o d 9 , and 7 3 = 3 4 3 ≡ 1 m o d 9 , we get 4 4 4 4 4 4 4 4 ≡ 7 4 4 4 4 = 7 ∗ 7 4 4 4 3 = 7 ∗ ( 7 3 ) 1 4 8 1 ≡ 7 m o d 9 .
The answer must be 7 .