7. All natural numbers, the sum of the digits of each of which is equal to 5, were arranged in ascending order. What number is in the 125th place?

Otvet: 41000.
Solution. Let's calculate the number of $n$-digit numbers, the sum of the digits of each of which is equal to 5, for each natural $n$. Subtract 1 from the leading digit, we get a number (which can now start with zero), the sum of the digits of which is equal to 4. Represent the digits of this number as cells, in each of which there is a number of balls equal to the digit in the corresponding place. Distributing 4 balls into $n$ cells is the same as placing $n-1$ partitions between 4 balls (there may be no balls between some partitions). This can be done in $C_{n+3}^{4}=\frac{(n+3)(n+2)(n+1) n}{24}$ ways, which is also the number of the sought $n$-digit numbers.

For $n=1,2,3,4,5$ we get respectively $C_{4}^{4}=1, C_{5}^{4}=5, C_{6}^{4}=15, C_{7}^{4}=35, C_{8}^{4}=70$, totaling 126 numbers. The number 50000, the largest five-digit number of this kind, stands at the 126th place. Therefore, the previous one, 41000, stands at the 125th place.