Stars and Bars (Positive Solutions)
The number of ways to write as an ordered sum of positive integers equals : place bars in the gaps between stars. It is used to count distributions of identical objects where everyone gets at least one.
LaTeX
\#\{x_1+\cdots+x_k=n,\ x_i\ge1\}=\binom{n-1}{k-1}Variables
- total to distribute
- number of parts (recipients)
- positive integer parts
Example
In how many ways can identical sweets be shared by children, each getting at least one?
- .
- .
Answer: ways.