A shop has distinct flavors of ice-cream. One can purchase any number of scoops of any flavor. The order in which the scoops are purchased is inconsequential. If one wants to purchase scoops of ice-cream, in how many ways can one make that purchase?
View worked solution
Answer: B
This is a classic problem of combinations with repetition (also known as the stars and bars problem or finding the number of non-negative integer solutions).
We need to choose scoops of ice-cream from distinct flavors. Since we can choose multiple scoops of the same flavor and the order of purchase does not matter, we can model this as:
where represents the number of scoops chosen of flavor .
The number of non-negative integer solutions is given by the formula:
Calculating the value:
Alternative Method (Case-by-Case Analysis):
Let the four flavors be and . We can categorize the selections as follows:
- All 3 scoops of the same flavor (e.g., ):
There are ways. - 2 scoops of one flavor and 1 of another (e.g., ):
Select the flavor for 2 scoops in ways, and the flavor for 1 scoop in ways.
Total ways = ways. - All 3 scoops of different flavors (e.g., ):
Select 3 distinct flavors out of 4 in ways.
Adding the ways from all cases:
Thus, there are 20 ways to make the purchase.
Free practice · Your answers on this page are not saved.
