Digit Sums

A random, 7-digit positive integer is selected. What is the most likely value for the sum of its digits?

Bonus: Generalize your answer to n n -digit integers.


The answer is 32.

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

Andy Hayes
Dec 21, 2017

Normally, we shouldn't conflate expected value with median (the most likely outcome), but in this case, they are the same.

The possible choices for the 1st digit are 1 1 through 9 , 9, and so the expected value of the first digit is 1 + 9 2 = 5. \frac{1+9}{2}=5. The possible choices for all the other digits are 0 0 through 9 , 9, and so the expected value of each other digit is 0 + 9 2 = 4.5. \frac{0+9}{2}=4.5. Then the expected value for the 7-digit number is 5 + 4.5 × 6 = 32 . 5+4.5\times 6=\boxed{32}.

Generalized to n n digits, the expected value of the digit sum is 5 + 4.5 n . 5+4.5n.

correction needed : instead of n, it should be n-1 because 4.5 is for the last n-1 digits. Answer = 5 + 4.5(n-1) = 0.5 + 4.5n

VRUND SHAH - 2 years ago

Let S S represent the sum of the digits of a random 7-digit positive number. If X n X_n is the value of the nth digit from left to right, then S = X 1 + X 2 + X 3 + X 4 + X 5 + X 6 + X 7 S = X_1 + X_2 + X_3 + X_4 + X_5 + X_6 + X_7 and by linearity of expectation E [ S ] = E [ X 1 ] + E [ X 2 ] + E [ X 3 ] + E [ X 4 ] + E [ X 5 ] + E [ X 6 ] + E [ X 7 ] E[S] = E[X_1] + E[X_2] + E[X_3] + E[X_4] + E[X_5] + E[X_6] + E[X_7] . Since the distribution of X n X_n is the same for n 2 n \geq 2 , E [ S ] = E [ X 1 ] + 6 E [ X 2 ] E[S] = E[X_1] + 6E[X_2] . The range of values for X 1 X_1 is [ 1 , 9 ] [1, 9] with each digit being equally likely to be chosen, so E [ X 1 ] = 1 9 9 ( 10 ) 2 = 5 E[X_1] = \frac{1}{9}\frac{9\left(10\right)}{2} = 5 . The range of values for X 2 X_2 is [ 0 , 9 ] [0, 9] with each digit being equally likely to be chosen, so E [ X 2 ] = 1 10 9 ( 10 ) 2 = 4.5 E[X_2] = \frac{1}{10}\frac{9\left(10\right)}{2} = 4.5 . Thus, E [ S ] = 5 + 6 ( 4.5 ) = 32 E[S] = 5 + 6(4.5) = \boxed{32}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...