Average digit sum – 4

What is the average of the digit sums s ( n ) s(n) of all non-negative multiples of 11 that are less than 1 0 6 10^6 (90910 numbers)?

In other words, evaluate

1 90910 n = 0 90909 s ( 11 n ) \frac 1{90910} \displaystyle \sum_{n=0}^{90909} s(11n)

Other parts

Note

The digit sum s ( n ) s(n) of a number n n is the sum of all digits of n n . For example, s ( 2019 ) = 2 + 0 + 1 + 9 = 12 s(2019)=2+0+1+9=12 . In this problem, we will only consider base 10.


The answer is 27.

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

Chris Lewis
Mar 4, 2019

If x x is a multiple of 11 11 , so is 999999 x 999999-x . If both members of this pair are positive, then the sum of their digit sums will always be 54 54 . It follows that the average digit sum is half of this, or 27 \boxed{27} .

Kyle T
Mar 7, 2019

<?php
$arr = array();
for($i=11;$i<=pow(10,6);$i+=11){
$arr[] = array_sum(str_split($i));
}
echo array_sum($arr)/count($arr); //27
?>



0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...