How many ways are there to put differently colored balls into identical boxes such that neither box is empty?
Bonus: Generalize this for ' ' balls into boxes.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
There are two choices for which urn to put each of the 10 balls into so there are 1024 ways to place the ten balls if the two urns are different. However, one of these ways will involve putting all the balls in the first urn and another way will involve putting all of the balls in the other urn. These cases will leave one of the urns empty so we have to discount them leaving 1022 cases. The two urns are identical so we have counted each possibility twice and therefore the final answer is 1022/2 = 511.