Question:
How many ways there are to distribute n balls to 2 boxes such that:
a) The balls are distinguishable and the boxes are indistinguishable?
b) The balls are indistinguishable and the boxes are also indistinguishable?
I'm know how to solve problems in which the boxes are distinguishable. Here is my approach:
My answer:
I'm considering that the order of the balls inside the boxes is irrelevant.
a) At first, it doesn't matter which box to choose, since they are indistinguishable. So we choose 1 from our n balls and put it into a box: ${n \choose 1}$. Now we have a box with a ball and a box without a ball, which makes the boxes distinguishable and n-1 balls remaining to be distributed into those boxes. Let the remaining balls choose any of the two boxes: $2^{n-1}$. Hence, my answer is: ${n \choose 1}\cdot 2^{n-1}$.
b) At first, it doesn't matter which box to choose, since they are indistinguishable. So we choose 1 from our n balls, which are also indistinguishable, and put it in a box: we have $1$ way to do that. Now we have n-1 balls to be distributed to two distinguishable boxes (one with a ball and other without balls). Since the balls are indistinguishable, what matters here is the amount of balls in each box, therefore I used stars and bars method: $$ b1+b2=n-1 \text{ where }b1,b2\geq 0 \rightarrow {n \choose 1} $$ Hence, my answer is: ${n \choose 1}$.
Is it correct? If not, can someone please explain what is the error in my reasoning?
Thanks!