$40$-years-old John only knows even digits. How many $4$-digits numbers he can write down? Find the sum of this numbers.
Attempt:
John knows $5$ digits $(0,\ 2,\ 4,\ 6,\ 8)$. We have 4 different places to place them. Certainly there are no $4$-digits numbers that begin with $0$ (that is, we don't take into account, for instance, the number $0846$). So in our first place we can put only $4$ out of out $5$ even numbers. In the remaining places there is no condition imposed, so John can write down:
$$4\cdot5^3 = 500\ \text{numbers}$$
Now let find the sum of these numbers.
A $4$-digit number in the decimal numerical system can be written as:
$$\overline{abcd} = a\cdot 10^3 + b\cdot 10^2 + c\cdot 10^1 + d\cdot 10^0$$
Certainly we want to find the sum of our $500$ numbers so,
$$\sum_{k=1}^{500}\overline{abcd} = \sum_{k=1}^{500}a\cdot 10^3 + \sum_{k=1}^{500}b\cdot 10^2 + \sum_{k=1}^{500}c\cdot 10^1 + \sum_{k=1}^{500} d\cdot 10^0$$
And here I'm stuck. I have to make some conclusions about the coefficient on the RHS, but I don't know which. Does really matter the fact that he is $40$ years old?