The number of nines in the decimal representation of the least multiple of whose sum of digits is .
This problem is a part of Tessellate S.T.E.M.S. (2019)
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.
We claim that the desired number is 5 9 8 9 9 9 ⋯ 9 9 9 8 9 8 8 8 (with 2 1 7 times 9 in between).
It is clear that the number has more than 2 2 4 digits, because 2 0 1 6 ÷ 9 = 2 2 4 . Now, to minimize the number we need to find a number with 2 2 5 digits which is a multiple of 2 0 1 6 . We write
N = a 2 2 4 a 2 2 3 ⋯ a 4 a 3 a 2 a 1 a 0
Since 2 0 1 6 = 2 5 . 3 2 . 7 , it is necessary and sufficient that the number k a 4 a 3 a 2 a 1 a 0 is a multiple of 3 2 and the number N is a multiple of 7 , since we already have N ≡ s ( N ) = ∑ i = 0 2 2 4 a i = 2 0 1 6 ≡ 0 ( m o d 9 ) .
First, we will analyze s ( k ) = ∑ j = 0 4 a j . The digit a 0 is even and is least equal to 8 . Thus we have the following cases:
If s ( k ) = 4 4 , then k is 9 9 9 9 8 and all its permutations.
If s ( k ) = 4 3 , then k is 9 9 9 8 8 and all its permutations.
If s ( k ) = 4 2 , then k is 9 9 8 8 8 , 9 9 9 7 8 , or 9 9 9 9 6 and all its permutations.
If s ( k ) = 4 1 , then k is 9 8 8 8 8 , 9 9 8 7 8 , or 9 9 9 6 8 and all its permutations.
We discard most of the numbers since the ones terminating in 7 , 9 , 7 8 , 8 6 , 9 8 , 7 8 8 , 9 8 8 , 9 9 6 or 8 8 8 8 are not multiples of 3 2 . The only multiples of 3 2 in all of these cases are 9 9 9 6 8 and 8 9 8 8 8 , and for both of these, s ( k ) = 4 1 .
If a 2 2 4 ≤ 3 then ∑ i = 0 2 2 4 a i ≤ 3 + 2 1 9 . 9 + ∑ j = 0 4 a j = 1 9 7 4 + s ( k ) ⟹ s ( k ) ≥ 4 2 , a contradiction, as s ( k ) ≤ 4 1 .
If a 2 2 4 = 4 , then 2 0 1 6 = ∑ i = 0 2 2 4 a i ≤ 4 + 2 1 9 . 9 + s ( k ) = 1 9 7 5 + s ( k ) , then s ( k ) ≥ 4 1 , and s ( k ) = 4 1 , whence N can terminate in only two ways, but since 9 9 9 6 8 ≡ 8 9 8 8 8 ≡ 1 ( m o d 7 ) , to minimize we choose 8 9 8 8 8 .
N = 4 9 9 9 ⋯ 9 9 9 8 9 8 8 8 ( 2 1 9 times 9 in between) = 4 . 1 0 2 2 4 + ( 1 0 2 1 9 − 1 ) . 1 0 5 + 8 9 8 8 8 ≡ 4 . 2 + ( 6 − 1 ) . 5 + 1 = 6 ≡ 0 ( m o d 7 ) .
If a 2 2 4 = 5 , then 2 0 1 6 = ∑ i = 0 2 2 4 a i ≤ 5 + 2 1 9 . 9 + s ( k ) = 1 9 7 6 + s ( k ) , whence s ( k ) ≥ 4 0 . To minimize we must have s ( k ) = 4 1 and as in the previous case, N terminates in 8 9 8 8 8 .
N = 5 9 9 9 ⋯ 8 ⋯ 9 9 9 8 9 8 8 8 ( 2 1 9 times 9 in total) = 5 . 1 0 2 2 4 + ( 1 0 2 1 9 − 1 ) . 1 0 5 − 1 0 m + 8 9 8 8 8 where 5 ≤ m ≤ 2 2 3 .
N ≡ 5 . 2 + ( 6 − 1 ) . 5 − 1 0 m + 1 ≡ 1 − 1 0 m ≡ 0 ( m o d 7 ) . Then 1 0 m ≡ 1 ( m o d 7 ) ⟺ m ≡ 0 ( m o d 6 ) . To minimize we choose the highest value for m , namely, m = 2 2 2 .