Pat is to select six cookies from a tray containing only chocolate chip, oatmeal, and peanut butter cookies. There are at least six of each of these three kinds of cookies on the tray. How many different assortments of six cookies can be selected?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
An assortment is a nonnegative solution of a + b + c = 6, and stars and bars counts these as C(8,2) = 28.
Solution
Cookies of the same kind are interchangeable, so an assortment is determined by the counts of chocolate chip, oatmeal and peanut butter cookies, which are nonnegative integers with . The "at least six of each" clause guarantees every such triple is actually available.
Represent a triple as a row of stars split by bars: for example means . Every arrangement of symbols with bars corresponds to exactly one assortment, so the count is
The answer is .
Why this works
Choosing items from types with repetition allowed is . The bijection with star-bar strings converts an unordered multiset problem into counting positions for bars. Recognize the setup by the phrase "how many different assortments" together with an unlimited supply of each type.
Alternative approach
Casework by pattern of counts: one kind only ( ways); two kinds with splits ( ordered ways across the pairs of kinds); three kinds with multisets giving . Total .
The trap
Treating the six cookies as distinguishable and answering 3^6 = 729, choice (E).
Common mistakes
- Treating the six cookies as distinguishable and answering 3^6 = 729, choice (E).
- Using by forgetting that two bars may sit together (a kind may be chosen zero times).
Techniques
Map the objects to something easier to count