How do I solve this combinatorically? I'm not quite sure how to approach this since each digit is dependent on the digit before it.
For example, if the first digit is a 9, then there are 10 possible choices for the second digit (0-9). 9 _ _ _ _ _. If we choose 5 to be the second digit, then the third digit has 6 possible choices (0-5). 9 5 _ _ _ _. If we choose 0 to be the third digit, then the fourth digit has 1 possible choices (0). 9 5 0 _ _ _. And for the rest of the digits, only 0 is possible. 9 5 0 0 0 0
What formula do I use to solve this? Could I use Stirling numbers or Permutations and Combinations in this situation?
HINT: This is the same as counting the $8$-digit numbers that start with $9$, end with $0$, and have their digits in weakly decreasing order, and the latter are easier to count.
Let $d_0d_1d_2d_3d_4d_5d_6d_7$ be such a number, so that
$$9=d_0\ge d_1\ge\ldots\ge d_6\ge d_7=0\,.$$
For $k=0,\ldots,6$ let $x_k=d_k-d_{k+1}$; each of these numbers is non-negative.