Questions: Stars and Bars: Combinations with Repetition

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

How many non-negative integer solutions does x₁ + x₂ + x₃ = 7 have?

AC(7, 3) = 35
BC(7, 2) = 21
CC(9, 2) = 36
DC(10, 3) = 120
Question 2 Multiple Choice

In how many ways can 5 identical cookies be distributed among 4 children if every child must receive at least 1 cookie?

AC(8, 5) = 56 — apply stars-and-bars directly with k=5 and n=4
BC(4, 1) = 4 — substitute yᵢ = xᵢ − 1 to absorb the minimum, leaving 1 cookie to distribute freely
CC(5, 4) = 5
DC(8, 4) = 70
Question 3 True / False

Stars-and-bars requires n − 1 bars (not n bars) to divide k stars into n groups.

TTrue
FFalse
Question 4 True / False

The number of ways to choose 4 items from a menu of 6 options (with repetition allowed, order irrelevant) is C(6, 4) = 15.

TTrue
FFalse
Question 5 Short Answer

Explain why n − 1 bars are needed to create n bins in the stars-and-bars model, and why the total arrangement count is C(n+k−1, k).

Think about your answer, then reveal below.