All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Sum Settlement (Posted on 2014-06-03) Difficulty: 3 of 5
Evaluate this sum:

S(1) + S(2) +....+ S(2014), given that S(N) is the sum of the digits of N .

No Solution Yet Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Possible solution | Comment 1 of 4
Consider first the numbers 000 to 999 (with leading zeros that won't affect the sum.)
In the hundreds place each digit occurs 100 times.
In the tens place each digit occurs 100 times.
In the ones place each digits occurs 100 times.
So each digit occurs 300 times.
(300*1) + (300*2) + ... + (300*9) = 300(1+2+...+9) = 300*45 = 13500

Consider next the numbers 1000 to 1999
each digit again occurs 300 times except for 1 which occurs an extra 1000 times.
13500+1000=14500

Finally consider 2000 to 2014
There will be 15 leading 2's = 30
five of the numbers will have a 1 in the tens place = 5
in the ones we have 1 to 9 and 1 to 4 = 45 + 10
the total here is 30+5+45+10=90

For a grand total of
13500 + 14500 + 90 = 28090

Assuming I made no errors.

  Posted by Jer on 2014-06-03 13:42:42
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (0)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information