I need to find the mean of the numbers ($9$-digit) formed of four $4$s and five $5$s .
MY WORK:
In order to find the sum I do the following and find sum of digits : $$25\times5!=3000$$ $$16\times4!=384$$
So, sum of all possible numbers : $$3384(1+10+10^2+ ... + 10^8)$$ $$=3384\times10^7$$
For finding the amount of numbers formed, I do : $$\frac{9!}{4!5!}$$ $$=126$$
This, the mean is :$$\frac{3384\times10^7}{126}$$
I don't know if I'm correct or not...
Hint: How many numbers are there? You need to choose four locations for the $4$s. Think of adding up all the numbers in a column. Each column will have some number of $4$s and some number of $5$s. How many of each? What is the mean of all the numbers in a column? You have the same mean of each column, so multiply it by $111\ 111\ 111$