Ask your own question, for FREE!
Mathematics 20 Online
OpenStudy (anonymous):

let S be the sum of all digits used in writing all numbers from 1 to 1010. the sum of digits of S is

OpenStudy (anonymous):

it doesnt even form an AP .:(

ganeshie8 (ganeshie8):

do it step by step, slowly

OpenStudy (anonymous):

but how adding dem all .?

ganeshie8 (ganeshie8):

00-09 = sum9 10-19 = 1*10 + sum9 20-29 = 2*10 + sum9 ... 90-99 = 9*10 + sum9 ---------------------- 10*sum9 + 10(sum 9) sum9(20) = 45*20 = 900 so 00->99 the sum of digits used is 900

OpenStudy (anonymous):

alright .!

ganeshie8 (ganeshie8):

btw, sum9 = 0+1+2+3 + .... 9

ganeshie8 (ganeshie8):

next, consider 100->999 100->199 = 1*100 + 900 200->199 = 2*100 + 900 ....

OpenStudy (anonymous):

yeah ..i interpreted .!

ganeshie8 (ganeshie8):

for 100->999 : if you add them all, clearly u wud get :- 100(sum9) + 10*900

OpenStudy (anonymous):

4500+9000=13500

ganeshie8 (ganeshie8):

dont forget to add 00->99 and 1000->1010 :)

OpenStudy (anonymous):

I was lazy and did it with Mathematica and got 13,501

OpenStudy (anonymous):

65+900 also to be included .!

OpenStudy (anonymous):

something is incorrect ..in my work .??

ganeshie8 (ganeshie8):

mathematica cannot be wrong. lets work it wid more attention :) we made a mistake, corrected below :- for 100->999 : if you add them all, clearly u wud get :- 100(sum9) + \(\color{red}{9} \)*900

ganeshie8 (ganeshie8):

100 - 999, there are 9 groups of 100s. not 10.

OpenStudy (anonymous):

ohh ..yes//

OpenStudy (anonymous):

Here is the Mathematica Code to do it Total[Table[Total[IntegerDigits[j]], {j, 1, 1000}]]

OpenStudy (anonymous):

what is that ..voo .?

ganeshie8 (ganeshie8):

ahh we're right ! we also got 13501 for the numbers between 1 & 1000

OpenStudy (anonymous):

then ...for 1010 also right .? .!

ganeshie8 (ganeshie8):

00->99 : 900 100->999 : 100(sum9) + 9*900 = 4500 + 8100 = 12600 1000->1010 : 1*11 + sum9 + 1 = 12 + 45 = 57 add them

OpenStudy (anonymous):

S=13557 so the sum of digits of S is 21 ..yeah .. a medal was the least honor to u ..! thank u .! sir @ganeshie8 and @eliassaab ..for correcting that

ganeshie8 (ganeshie8):

np :)

OpenStudy (anonymous):

Mathematica agrees Total[Table[Total[IntegerDigits[j]], {j, 1, 1010}]] = 13557

OpenStudy (anonymous):

actually ..some script problem ..i am not being able to see in the desired format ..! ..but is that ..any direct formula to do that .?

OpenStudy (anonymous):

I am thinking about it

OpenStudy (anonymous):

Your problem can be found on http://answers.yahoo.com/question/index?qid=20100327133907AAp8Umm One of the solution is similar to what you did above

OpenStudy (anonymous):

ohh ..yes ..

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!