Twelvefold way
Builds on FunctionInjective functionSurjective functionSymmetric groupStirling numbers of the second kindInteger partitionFalling factorial
Definition
Let and be finite sets with and . Consider the functions in one of three classes: all functions, injective functions, or surjective functions. Count them in one of four ways:
- as functions;
- up to permutations of , so and count as the same for every permutation of ;
- up to permutations of , so and count as the same for every permutation of ;
- up to permutations of both, so and count as the same for all such and .
The twelvefold way is the list of these counting problems with their answers.
Remarks
Write for the falling factorial, for the Stirling numbers of the second kind, and for the number of partitions of into exactly parts. Write for if and otherwise. The answers, with balls and boxes , are as follows.
| count | all functions | injective | surjective |
|---|---|---|---|
| as functions | |||
| up to permutations of | |||
| up to permutations of | |||
| up to both |
The entry needs ; for there is exactly one surjection, the empty map.
Example: take and , counted up to permutations of . A class of functions is then fixed by how many balls go into each box, so the classes are , , and . This gives , as in the table.
Non-example: counting functions up to a permutation of that is not arbitrary, for instance only up to cyclic rotations of , is not one of the twelve problems. It leads to necklace counting, which is handled by the Pólya enumeration theorem.
The second row is the theory of combinations with repetition. The first entry of the first row is the number of functions between finite sets, and the second is the number of injections.
Reading path
To understand this page from the ground up, read these 21 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Element definition
- Falling factorial definition
- Integer partition concept
- Proposition concept
- Stirling numbers of the second kind concept
- Symmetric group concept
- Set definition
- Implication definition
- Predicate definition
- Ordered pair definition
- Existential quantifier definition
- Universal quantifier definition
- Cartesian product definition
- Subset definition
- Uniqueness quantifier definition
- Binary relation definition
- Function definition
- Codomain definition
- Injective function definition
- Surjective function definition
- Twelvefold way definition
Further reading
About this page
| Tag | 3BBE4XY4E9 |
|---|---|
| URI | m2://3BBE4XY4E9 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 05A15, 05A18, 05A17 |
| Defines | Twelvefold way |
| Uses | Function, Injective function, Surjective function, Symmetric group, Stirling numbers of the second kind, Integer partition, Falling factorial |
| Changed | 2 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)
- a source with a locator (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.