Number of ways of arranging 4 unique/distinct balls into 3 boxes. Note that a box can contain zero balls.
Of course the easiest way of solving this problem is simply:
$3^4$
since there are 3 options for each ball, so 3 AND 3 AND 3 AND 3 = 81 (using the product principle).
However, I was trying to use the stars and bars formula with this. Of course the limitation is that now the stars are distinct. I am aware that someone has posted an answer to this already, but I did not follow this explanation.
I am looking for a fix to the stars and bars approach. Here is what I have done so far:
$\binom{n+k-1}{n}\times n!=\binom{6}{4} \times 4!$
because we want to permute (position/order matters) the 4 balls amongst 6 spaces. While the balls are distinct, the bars are not, so of course we need to divide by two.
This gives me:
$\frac{\binom{6}{4}\times 4!}{2} = 180$
which is not the correct answer. Please advise!