Stars and Bars (Hard)
Late AMC 10/12 through early AIME — dense computation.
Stars and Bars: core idea
Bounds + inclusion-exclusion.
Example problem: hint and answer
Positive integers with each . How many solutions?
Hint: Inclusion-exclusion after . Answer: 1451.
Practice (9 problems — type your answers)
1. Partitions of into exactly parts. How many?
2. Surjective functions . How many?
3. Positive integers with . Count triples.
4. Catalan .
5. Nonnegative solutions to .
6. Choose from with no two consecutive. How many?
7. Coefficient of in .
8. Positive -tuples summing to with . Count?
9. Ways to write as ordered sum of powers of (parts )?