A sweet shop offers cookies of 5 flavors. How many ways can we buy 20 cookies?
Note: The order is not important.
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.
As order does not matter, this problem is solved the Stars and Bars Technique:
We have to place 20 indistinguishable cookies into 5 labeled urns (one for each flavour), which can be done in ( 2 4 4 ) = 1 0 6 2 6 ways.