Average digit sum – 5

Let s ( n ) s(n) be the digit sum of n n .

d a ( n ) d_a(n) is defined to be the average digit sum of all non-negative integers less than or equal to n n that are divisible by a a .

d a ( n ) = 1 n a + 1 k = 0 n a s ( a k ) d_a(n)= \displaystyle \frac 1{\left\lfloor \frac na \right\rfloor +1} \sum_{k=0}^{\left\lfloor \frac na \right\rfloor} s(ak)

Find d 9 ( 1 0 8 ) d 11 ( 1 0 8 ) d_{9}\left(10^8\right) - d_{11}\left(10^8\right) .

Other parts


The answer is 0.

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

Chris Lewis
Mar 4, 2019

We can use the same approach as for the previous problem.

If x x is a multiple of 9 9 , so is 99999999 x 99999999-x . If both members of this pair are positive, then the sum of their digit sums will always be 72 72 . It follows that d 9 ( 1 0 8 ) d_{9} \left(10^8 \right) is half of this, or 36 36 .

In exactly the same way, we find that d 11 ( 1 0 8 ) d_{11} \left(10^8 \right) is also 36 36 . Hence the required answer is 0 \boxed0 .

This trick will work for any even power of 10 10 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...