digit number combinations.
A five digit number can be filled by ten digits ways
Thus, each of the five places can be filled in ways.
Now, we need to exclude the possibility of existing at ten-thousand place
The number of -digits numbers that have at ten-thousand place
Therefore, the numbers of ways to write -digits numbers