0

Let n ∈ $\mathbb{N}$ be a natural number, an ordered set of positive integers $(λ_{1},...,λ_{k})$ such that $λ_{1}\,+ \, ... \, + \, λ_{k} = n$ is called a composition for n ∈ $\mathbb{N}$. These integers are not necessarily distinct. Show that the number of possible compositions for n ∈ $\mathbb{N}$ is $2^{n−1}$.

Example: the number $n = 4$ has the following 8 compositions $(4),(3, 1),(2, 2),(2, 1, 1),(1, 3),(1, 2, 1),(1, 1, 2),(1, 1, 1, 1)$.

1 Answers1

1

By using stars and bars, the number of partitions into $k$ groups is $n-1\choose k-1$.

Adding up, and using the binomial theorem, we get $\sum_{k=1}^n{n-1\choose k-1}=\sum_{k=0}^{n-1}{n-1\choose k}=2^{n-1}$.