I have to solve this problem:
"Suppose a box contains $18$ balls numbered $1–6$, three balls with each number. When $4$ balls are drawn without replacement, how many outcomes are possible?". (The order does not matter).
I can't find a simple formula for it. I've tried in this way and I don't know if it is right way:
A random outcome could or could not have the number $1$. If it has it, the outcome could be $111$ plus a number $2\le n \le 6$, or $11$ plus two numbers or $1$ plus three numbers.
- In the first case we have a total of ${{5}\choose{1}} = 5 $ outcomes.
- In the second case we have a total of ${{5}\choose{2}} + 5 = 15$ outcomes.
- In the last case we have a total of ${{5}\choose{3}} + 5 +5\times 4 = 35 $ outcomes.
Finally, if the outcomes does not have the number 1 we have a total of $ {{5}\choose{4}} + 5\times(4\times 3 + 4) + 5\times 4 + 5 = 110$.
So there are 165 possible outcomes.
Is it right? If yes, there is a simpler and much more elegant way to prove it?
Thanks
Method I. (case by case)
Case I: all numbers are distinct. Then there are $\binom 64 =15$.
Case II: one pair, the other two distinct. Then there are $6$ ways to choose the rank of the pair, and $\binom 52=10$ ways to choose the odd two. Thus $6\times 10=60$.
Case III: two pairs. There are $\binom 62=15$.
Case IV: one triple. There are $6$ ways to choose the rank of the triple and $5$ ways to choose the odd man out. Thus $30$.
So: $$15+60+15+30=120$$
Method II. (Stars and Bars)
If you ignore the fact that we only have three of each number, then we are just asking for the number of $6-$tuples of non-negative integers that sum to $4$. Stars and Bars then tells us that the answer would be $\binom {4+6-1}4=\binom 94=126$. Of course, this also counts the six cases in which all the balls show the same number. As that is impossible, we must remove those cases, so the answer would then be $$126-6=120$$