I have a problem where I need to calculate how many different ways there are to select a number of bagels from a bagel shop which has 8 different kinds of bagels. I understand that if I want to calculate how many ways their are to choose for example, 12 bagels, I find:
C(n + k -1, k) or C(8 + 12 - 1, 12)
However, I do not understand how to calculate the number of ways to choose 12 bagels if for example, one must choose at least one of each kind or at least 3 of one kind and no more than 2 of another.
That makes sense thank you! So for the second scenario, if I had to pick no more than lets say 2 of one kind, I could use that technique to calculate the number of ways to pick 0 of one kind, followed by 1, and then 2 and add them all together.
– James Hogle Mar 08 '15 at 21:11