When 4 4 4 4 4 4 4 4 is written in decimal notation, the sum of it's digit is A. Let B be the sum of the digits of A. Find the sum of the digits of B. (A and B are written in decimal notation)
This problem is from IMO 1975 problem 4
For more such problems click here
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.
Note that 4 4 4 4 4 4 4 4 < 1 0 0 0 0 4 4 4 4 = ( 1 0 4 ) 4 4 4 4 = 1 0 1 7 7 7 6
Therefore 4 4 4 4 4 4 4 4 has fewer than 17776 digits. This shows that A < 9 * 17775=159975. The sum of the digits of A is then maximized when A = 99999, so B is less than or equal to 45. Note that out of all of the positive integers less than or equal to 45, the maximal sum of the digits is 12.
It's not hard to prove that any base-10 number is equivalent to the sum of its digits modulo 9. Therefore 4 4 4 4 4 4 4 4 is equivalent to A which is equivalent to B (modulo 9). This motivates us to compute X, where 1 is less than or equal to X which is less than or equal to 12, such that 4 4 4 4 4 4 4 4 is equivalent to X (modulo 9). The easiest way to do this is by searching for a pattern. Note that
4 4 4 4 1 ≡ 7 ( m o d 9 ) 4 4 4 4 2 ≡ 4 ( m o d 9 ) 4 4 4 4 3 ≡ 1 ( m o d 9 )
and since 4444 = 3 * 1481 + 1
4 4 4 4 4 4 4 4 ≡ 4 4 4 4 3 × 1 4 8 1 + 1 ≡ ( 4 4 4 4 3 ) 1 4 8 1 × 4 4 4 4 ≡ 1 × 4 4 4 4 ≡ 7 ( m o d 9 )
Thus, X = 7, which means that the sum of the digits of B is 7.
Problem Loading...
Note Loading...
Set Loading...
Define f ( n ) , for n ∈ N , to be f ( n ) = n , when n ∈ A = { 1 , … , 9 } , and to be the sum of the digits of n , if n ∈ A .
It can be shown that, If n ∈ A ,then f ( n ) < n . Therefore, for some m ∈ N , the m -fold application of f m ( n ) would be a member of A . To determine which member of A , n m o d 9 can be calculated. For the case 4 4 4 4 4 4 4 4 , the answer is 7 .
Then we need to prove that f 3 ( 4 4 4 4 4 4 4 4 ) is actually 7 . In other words, applying f , three times, would give us a single digit number.
f ( 4 4 4 4 4 4 4 4 ) ≤ 9 × ⌊ lo g 1 0 4 4 4 4 4 4 4 4 ⌋ = 1 4 5 8 9 0
f ( 4 4 4 4 4 4 4 4 ) would have a maximum of 6 digits. Therefore
f 2 ( 4 4 4 4 4 4 4 4 ) ≤ 9 × 5 = 4 5
finally,
f 3 ( 4 4 4 4 4 4 4 4 ) ≤ 3 + 9 = 1 2
The only natural number, less than or equal to 1 2 ,that is congruent to 7 ,mod 9 , is 7 itself.