For each positive integer suppose is the sum of the digits of Find the smallest positive integer such that
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.
Suppose that 1 ≤ k ≤ 9 9 9 9 is an at most 4 -digit number, so that k = a b c d for some 0 ≤ a , b , c , d ≤ 9 . Then s ( k ) = a + b + c + d and 1 0 0 1 k = a b c d 0 0 0 + a b c d = a 0 0 0 b c d + b c d 0 0 0 + a 0 0 0 There are various cases to consider:
Thus we have shown that s ( 1 0 0 1 k ) = s ( k ) for all 1 ≤ k ≤ 9 9 9 8 .
If 1 ≤ j ≤ 9 9 9 9 we can write j = p q r s for some integers 0 ≤ p , q , r , s ≤ 9 . But then 9 9 9 9 j = 1 0 0 0 0 j − j = p q r s 0 0 0 0 − p q r s = ⎩ ⎪ ⎪ ⎨ ⎪ ⎪ ⎧ p q r ( s − 1 ) ( 9 − p ) ( 9 − q ) ( 9 − r ) ( 1 0 − s ) p q ( r − 1 ) 9 ( 9 − p ) ( 9 − q ) ( 1 0 − r ) 0 p ( q − 1 ) 9 9 ( 9 − p ) ( 1 0 − q ) 0 0 ( p − 1 ) 9 9 9 ( 1 0 − p ) 0 0 0 s > 0 r > 0 , s = 0 q > 0 , r = s = 0 p > 0 , q = r = s = 0 which shows that s ( 9 9 9 9 j ) = 3 6 = s ( 9 9 9 9 ) for all 1 ≤ j ≤ 9 9 9 9 , and so certainly for 1 ≤ j ≤ 2 0 1 4 . The answer is 9 9 9 9 .