- #1
Superdemongob
- 8
- 0
This is not a homework problem but in fact a solved example question.
The full question text is below with answers and my reasoning for them. Could someone please explain the reasoning behind part (c).
A coffee shop sells 5 types of coffee (latte, mocha, espresso, cappuccino and iced coffee). All coffee of the same type is indistinguishable. We are buying 10 coffees in total.
How many ways are there to buy 10 coffees if:
(a) there are no restrictions
(b) you buy at least 2 iced coffees.
(c) you can buy at most 2 mochas.
Any help is greatly appreciated.
The full question text is below with answers and my reasoning for them. Could someone please explain the reasoning behind part (c).
A coffee shop sells 5 types of coffee (latte, mocha, espresso, cappuccino and iced coffee). All coffee of the same type is indistinguishable. We are buying 10 coffees in total.
How many ways are there to buy 10 coffees if:
(a) there are no restrictions
C(10+5-1, 10)
The reasoning is that given no restrictions, this is a combination with repetition.
(b) you buy at least 2 iced coffees.
C(8+5-1, 8)
The reasoning is that since 2 coffees are decided, its a combination with repetition for the remaining 8.
(c) you can buy at most 2 mochas.
C(13,3) + C(12,3) + C(11,3)
Here is where I have no idea how they got these numbers.
Any help is greatly appreciated.