Counting & ProbabilityHardDistributions: Stars & Bars and Integer Solutions
Distributions: Stars & Bars and Integer Solutions · Hard problem
A vending machine dispenses one of types of candy each time its button is pressed. You press the button times. How many different collections (multisets) of candy could result?