Lets say we are rolling a fair 6 sided dice 4 times and recording the number we get after each roll. What is the probability of getting a number $m$ with $m\in \{1,2,3,4,5,6\}$ say one or four times; and generalizing to some number of times.
I try solve this with combinations, where repetition is allowed, then with $r= $#rolls:
$\frac{(r+n-1)!}{r!(n-1)!} \Rightarrow \frac{(4+n-1)!}{4!(n-1)!} = \frac{(n+3)!}{4!(n-1)!}$
then getting the number one, four and $m$ times is just:
$\frac{(1+3)!}{4!(1-1)!}=1,\frac{(4+3)!}{4!(4-1)!}=35,\frac{(m+3)!}{4!(m-1)!},m\leq4$
And so the probabilities would be
$\frac{1}{4^6},\frac{35}{4^6},\frac{4^5(m+3)!}{3!(m-1)!},m\leq4$
Did I do it right?
Assuming the die is fair, the probability of getting any particular number $k$ times in $n$ rolls is binomial probability $$\binom{n}{k}\left(\frac{1}{6}\right)^k\left(\frac{5}{6}\right)^{n-k}$$