At the 26-flavor ice cream shoppe ...
III.A.1. How many different five-scoop dishes are possible when all scoops have to be different flavors?
III.B.1. How many different five-scoop dishes are possible if there is no prohibition against repeating flavors?
III.C. How many different five-scoop dishes are possible if there can be no more than two vanilla scoops, at most one chocolate scoop, and no more than three strawberry scoops?
| > |
vanilla := powpoly(1+z+z^2,z): |
| > |
chocolate := powpoly(1+z,z): |
| > |
strawberry := powpoly(1+z+z^2+z^3, z): |
| > |
other := powpoly(1+z+z^2+z^3+z^4+z^5, z): |
| > |
genfct := evalpow(vanilla*chocolate*strawberry*other^23): |
Answer = coefficient of z^5, i.e., 138854.