6. 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
Answer: 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 desired $n$-digit numbers.

For $n=1,2,3,4,5$, we get $C_{4}^{4}=1, C_{5}^{4}=5, C_{6}^{4}=15, C_{7}^{4}=35, C_{8}^{4}=70$, totaling 126 numbers. The 126th number is the largest five-digit such number, i.e., 50000. Therefore, the 125th number is the previous one - 41000.