Lots of digit sums

The digit sum of a positive integer is the sum of its digits. For example, the digit sum of 421 = 4 + 2 + 1 = 7 421=4+2+1=7 .

What is the total of the digit sums of all integers from 0 0 to 999 999 , inclusive?

10000 4500 14500 13500

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

Each digit from 0 0 to 9 9 appears 100 100 times in each of the 3 3 columns.

The answer is therefore 3 100 r = 0 9 r = 300 9 ( 9 + 1 ) 2 = 300 45 = 13500 3\cdot 100\cdot\sum_{r=0}^9r=300\cdot\dfrac{9(9+1)}{2}=300\cdot45=\color{#20A900}{\boxed{13500}}

Barry Leung
Aug 9, 2020

When we rewrite each number using three digits, like 37 = 037 37 = 037 , we see that each digit from 0 0 to 9 9 appears exactly 100 times in each column. For the calculation, check @Matthew Christopher 's solution.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...