Using the alphabet $\Sigma = \{0,1,2,3,4,5,6,7,8,9\}$ , we want to form -digit strings allowing infinite repetition of digits but asking for at least one occurrence of the digit 0 (in any position).
- Calculate the number of numbers that can be formed, with combinatorial arguments.
- Formulate the corresponding generating function in the specific measurement and report the coefficient where the result is.
So far I found that the total number of numbers that can be formed in total is $10^n$ minus the total numbers that can be formed without the 0 are $9^n$. So the answer to the first question is $10^n - 9^n$. But for the second question, I have no clue.
Actually it is pretty simple, for
$n=2$ , $10^2 -9^2$
$n=5$ , $10^5 -9^5$ etc.
So, for any $n$ value, find the coefficient of $x^n$ in the expansion of $$\frac{1}{1-10x}-\frac{1}{1-9x}$$ $$(1+10^1x+10^2x^2+10^3x^3+...+10^nx^n+.. )-(1+9x+9^2x^2+9^3x^3+...+9^nx^n+...)$$
$$\frac{x}{90x^2-19x+1}$$