is the least possible integer whose sum of the digits is 100 while the sum of the digits of is 110. What is the sum of the square of digits of ?
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.
S ( x ) , for a natural number x is the digital sum of x . First, we find the minimum number digits N can have. It would be 1 2 , for if we have 1 1 digits, then S ( N ) ≤ 9 × 1 1 < 1 0 0 .
a i , for i ∈ { 0 , 1 , … , 9 } , is the number times a digit i is repeated in N . then the following equations hold true.
∑ i = 0 9 i a i = 1 0 0
a 1 + 2 a 2 + 3 a 3 + 4 a 4 − 4 a 5 − 3 a 6 − 2 a 7 − a 8 = 1 0
for the second equation, you need to pay attention to the digital difference, made when a single-digit number is multiplied by two. For example, 2 becomes 4 , after being multiplied by 2 and the difference (made to the digital sum) would be + 2 , regardless of the position of 2 in the number or its preceding and succeeding digits. for 8 , the difference would be − 1 .
Now, we subtract the second equation from the first equation to get
9 ( a 5 + a 6 + a 7 + a 8 + a 9 ) = 9 0 ⟹ ( a 5 + a 6 + a 7 + a 8 + a 9 ) = 1 0 . So, there should be a total of 1 0 digits from digits 5 , 6 , 7 , 8 , 9 .
N cannot have 1 2 digits. because even if we have 1 0 9 s and the remaining 2 digits are 4 , S ( N ) = 9 8 < 1 0 0 . So we may try 1 3 digits. one can easily find candidates like 4 4 4 8 8 9 9 9 9 9 9 9 9 . from there, you can modify the number, so it becomes smaller. Because of the symmetry, one can take 1 off of one the first three digits and add it to one of the last ten digits, as long as we do not hit 0 for any of the last ten digits. after the process, we are forced to stop at 2 4 4 9 9 9 9 9 9 9 9 9 9 , which is the final answer.