Crazy functions!!!!

Let S(M) denote the sum of the digits of a positive integer (M) written in base 10. Let N be the smallest positive integer such that S(N) = 2013. What is the value of S(5N+2013)?


The answer is 18.

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.

2 solutions

Hahn Lheem
Apr 20, 2014

We must first try to find the smallest possible value of N N . By doing so, we must put in as many 9 9 's as possible. Since 2013 9 = 223 \left \lfloor \dfrac{2013}{9} \right \rfloor=223 , there are 223 223 nines and one 6 6 in this number N N (the last number is a 6 because 2013 9 223 = 6 2013-9 \cdot 223=6 . To make this the smallest positive integer, the 6 6 must be the leftmost digit. From here, we must multiply by 5 5 . We can dissect this massive number as 5 ( 6 000 00 223 zeroes + 9999 999 223 nines ) 5 \cdot (6\underbrace{000 \ldots 00}_{223 \text{ zeroes}} + \underbrace{9999 \ldots 999}_{223 \text{ nines}} ) . The first part gives us 3 000 00 224 zeroes 3\underbrace{000 \ldots 00}_{224 \text{ zeroes}} , while the second part gives us 4 999 99 222 nines 5 4\underbrace{999 \ldots 99}_{222 \text{ nines}}5 . Adding them up gives us 34 999...99 222 nines 5 34\underbrace{999...99}_{222 \text{ nines}}5 which is equivalent to 35 000 00 223 zeroes 5 35\underbrace{000 \ldots 00}_{223 \text{ zeroes}}-5 Since our objective is to find S ( 5 N + 2013 ) S(5N+2013) , we must add the number above to 2013 2013 and then find the digit sum. 35 000 00 223 zeroes 5 + 2013 = 35 000 00 223 zeroes + 2008 = 35 000 00 219 zeroes 2008 35\underbrace{000 \ldots 00}_{223 \text{ zeroes}}-5+2013=35\underbrace{000 \ldots 00}_{223 \text{ zeroes}}+2008=35\underbrace{000 \ldots 00}_{219 \text{ zeroes}}2008 Since we conveniently do not need to add any of the zeroes, our final answer is 3 + 5 + 2 + 8 = 18 3+5+2+8=\boxed{18}

Any questions are welcome, and I will do my best to answer them.

good job

MAYYANK GARG - 7 years, 1 month ago

Same method, Pre RMO 2013 question.

Kushagra Sahni - 5 years, 8 months ago
Sarath Ch
Apr 15, 2014

N is least integer satisfying given condition so N = 6followed by 223 9s Using this calculate required value

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...