Theorem 5.1.1 · Stars and Bars
The number of ways to place identical objects into distinguishable bins is
Draw the objects as stars in a row and split them into bins with bars: everything left of the first bar goes to bin 1, everything between bars 1 and 2 goes to bin 2, and so on. Every row of stars and bars is exactly one way to share, and every way to share is exactly one row. A row has slots, and we choose which of them hold stars: ways. Choosing the bar slots instead gives the same number, .