Tessellate S.T.E.M.S. (2019) - Computer Science - School - Set 3 - Objective Problem 1

N N is the least possible integer whose sum of the digits is 100 while the sum of the digits of 2 N 2N is 110. What is the sum of the square of digits of N N ?


This problem is a part of Tessellate S.T.E.M.S (2019)

846 830 851 841

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.

1 solution

S ( x ) S(x) , for a natural number x x is the digital sum of x x . First, we find the minimum number digits N N can have. It would be 12 12 , for if we have 11 11 digits, then S ( N ) 9 × 11 < 100 S(N) \leq 9\times 11 < 100 .

a i a_i , for i { 0 , 1 , , 9 } i \in \{0,1,\dots,9\} , is the number times a digit i i is repeated in N N . then the following equations hold true.

i = 0 9 i a i = 100 \sum_{i=0}^{9}ia_i=100

a 1 + 2 a 2 + 3 a 3 + 4 a 4 4 a 5 3 a 6 2 a 7 a 8 = 10 a_1+2a_2+3a_3+4a_4-4a_5-3a_6-2a_7-a_8=10

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 2 becomes 4 4 , after being multiplied by 2 2 and the difference (made to the digital sum) would be + 2 +2 , regardless of the position of 2 2 in the number or its preceding and succeeding digits. for 8 8 , the difference would be 1 -1 .

Now, we subtract the second equation from the first equation to get

9 ( a 5 + a 6 + a 7 + a 8 + a 9 ) = 90 ( a 5 + a 6 + a 7 + a 8 + a 9 ) = 10 9(a_5+a_6+a_7+a_8+a_9)=90 \implies (a_5+a_6+a_7+a_8+a_9)=10 . So, there should be a total of 10 10 digits from digits 5 , 6 , 7 , 8 , 9 5,6,7,8,9 .

N N cannot have 12 12 digits. because even if we have 10 10 9 9 s and the remaining 2 2 digits are 4 4 , S ( N ) = 98 < 100 S(N)=98<100 . So we may try 13 13 digits. one can easily find candidates like 4448899999999 4448899999999 . from there, you can modify the number, so it becomes smaller. Because of the symmetry, one can take 1 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 0 for any of the last ten digits. after the process, we are forced to stop at 2449999999999 2449999999999 , which is the final answer.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...