← All lessons

Stars and Bars (Medium)

AMC 10/12 mid (≈Q9–16) — multi-step.

Stars and Bars: core idea

Positive via yi=xi−1y_i=x_i-1.

Example problem: hint and answer

How many **nonnegative** solutions does x1+x2+x3+x4=10x_1+x_2+x_3+x_4=10 have?

Hint: (10+4−14−1)\binom{10+4-1}{4-1}. Answer: 286.

Practice (9 problems — type your answers)

  • 1. How many **positive** solutions does x1+x2+x3=11x_1+x_2+x_3=11 have?

  • 2. How many nonnegative solutions to x+y+z=15x+y+z=15?

  • 3. How many **positive** solutions to x1+x2+x3+x4=10x_1+x_2+x_3+x_4=10?

  • 4. Nonnegative solutions to x1+x2+x3=12x_1+x_2+x_3=12 with x1≥3x_1\ge 3?

  • 5. How many **positive** solutions to x1+x2=17x_1+x_2=17?

  • 6. Distribute 88 identical balls into 55 distinct bins (empty bins allowed). How many ways?

  • 7. How many **positive** solutions to x1+x2+x3=14x_1+x_2+x_3=14?

  • 8. How many nonnegative solutions to x1+x2=20x_1+x_2=20?

  • 9. Distribute 1212 identical tokens into 44 distinct boxes (some may be empty). How many ways?

Stars and Bars Practice Problems — Medium