Proof of the number of compositions by partial sums
Builds on Composition of an integerBijective iff it has a two-sided inverseBijection principleNumber of subsets of a finite set
Proof
We give a bijection between compositions of and subsets of .
- Let . Let be the set of compositions of , and let be the set of subsets of .
- Let . Then , because the empty sequence has sum .
- Put for . Then and .
- Since each , we have . Hence is a subset of .
- Define .
- Let have elements . Put and , so .
- Define . Its entries are positive integers, and they sum to . So .
- Let . The elements of in increasing order are , by step 4.
- So .
- Let . The partial sums of are , because the differences telescope.
- So .
- Thus and are inverse maps, and is a bijection from to .
- The set has elements. By the number of subsets of a finite set, .
- By the bijection principle, .
Idea
Write as a row of ones. A composition is the same as a choice of the places where we cut the row. There are gaps between the ones, and each gap is cut or not. The cut positions are exactly the partial sums with .
Reading path
To understand this page from the ground up, read these 47 pages in order. The foundations come first. The path takes the proofs Proof that a composition of injections is injective, Proof that a function is bijective iff it has a two-sided inverse, Proof of the number of subsets of a finite set by indicator functions, Proof of the rule of product, Proof of the number of functions between finite sets, Proof that a composition of surjections is surjective, Proof of the rule of sum, Proof of the bijection principle.
- Cardinality of a finite set definition
- Composition of an integer definition
- Element definition
- Proposition concept
- Set definition
- Conjunction definition
- Implication definition
- Predicate definition
- Empty set object
- Ordered pair definition
- Intersection definition
- Existential quantifier definition
- Universal quantifier definition
- Cartesian product definition
- Disjoint sets definition
- Subset definition
- Uniqueness quantifier definition
- Binary relation definition
- Power set definition
- Function definition
- Codomain definition
- Function composition definition
- Identity function definition
- Injective function definition
- Indicator function definition
- Restriction of a function definition
- Surjective function definition
- Left inverse definition
- Right inverse definition
- Proof that a composition of injections is injective proof
- Proof that a composition of surjections is surjective proof
- Bijective function definition
- Composition of injections is injective statement
- Composition of surjections is surjective statement
- Proof of the rule of sum proof
- Proof that a function is bijective iff it has a two-sided inverse proof
- Rule of sum statement
- Bijective iff it has a two-sided inverse statement
- Proof of the rule of product proof
- Proof of the bijection principle proof
- Rule of product statement
- Bijection principle statement
- Proof of the number of functions between finite sets proof
- Number of functions between finite sets statement
- Proof of the number of subsets of a finite set by indicator functions proof
- Number of subsets of a finite set statement
- Proof of the number of compositions by partial sums proof
Where this leads
1 page builds on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Composition_(combinatorics), Number of compositions
About this page
| Tag | C9H2SC7D3T |
|---|---|
| URI | m2://C9H2SC7D3T |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05A17 |
| Proves | Number of compositions |
| Uses | Composition of an integer, Bijective iff it has a two-sided inverse, Bijection principle, Number of subsets of a finite set |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.