SOLUTION: How many ways are there to put 6 balls in 3 boxes if the balls are distinguishable but the boxes are not?

Algebra ->  Permutations -> SOLUTION: How many ways are there to put 6 balls in 3 boxes if the balls are distinguishable but the boxes are not?      Log On


   



Question 1143349: How many ways are there to put 6 balls in 3 boxes if the balls are distinguishable but the boxes are not?
Answer by math_helper(2461) About Me  (Show Source):
You can put this solution on YOUR website!

The case of indistinguishable boxes requires Stirling's number of the 2nd kind (this arises due to a recursive nature of combinations: you put ball A into a box, then ball B can go into the box with A or one of the other two boxes, etc.):
S(n,k) = Stirling's number of the 2nd kind
S(n,k) = +%281%2Fk%21%29%2Asum%28%28-1%29%5Ej+%2A+C%28k%2Cj%29+%2A+%28k-j%29%5En%2C+j=0%2C+k%29+
with C(k,j) = k!/((k-j)!j!)
We have n=6 balls, k=3 boxes. You can distribute the balls into one box, into two boxes, or all three boxes:
S(6,1) + S(6,2) + S(6,3) = 1 + 31 + 90 = +highlight%28+122+%29+