Please help me to verify my solution of the following problem:
Imagine we have a box with $n$ balls, each ball has unique color (or number) from $1$ to $n$. We take one ball from the box $m \geq n$ times, track the color and put the ball back into the box. What is the probability that each color will be tracked at least once? The answer should depend on $m$ and $n$.
My attempt:
I will consider ordered sequences since it looks like it is easer to deal with them in this case. We have $n^m$ sequences of choices in total. Let us consider a sequences where each colour is tracked at least once. How many such sequences are there? It looks like there are ${m \choose n}n!n^{m-n}$, so $$P=\frac{{m \choose n}n!n^{m-n}}{ n^m}=\frac{m!}{(m-n)!n^n}$$
Is my solution valid? If it is so, can you please provide the solution with unordered sequences, giving the same probability?
Thanks a lot for your help!