How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Set Partitions, Stirling Numbers and Exponential Generating Functions
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Combinatorial Classes and the Symbolic Method
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Finite Counting, Factorials and Binomial Coefficients
- Formal Power Series
- Foundations of the Real Numbers for Analysis
- Inclusion–Exclusion, the Pigeonhole Principle and Double Counting
- limsup, liminf, and Subsequential Limits
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- Permutation Statistics, Inversions and Eulerian Numbers
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Suprema and Infima
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Exponential Function
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
This page fixes the Stirling-number notation once, proves the finite recurrences and change-of-basis formulas that connect powers, falling factorials, and cycle counts, and then turns to the labelled symbolic method. The labelled half is the point of the page: it explains why the vertical Stirling triangles, the Bell exponential formula, involution numbers, ordered Bell numbers, and the no-singleton partition count all have the expected exponential generating functions.
Only one item here is deliberately analytic: Dobinski's formula expresses the Bell numbers as . Everything before it is formal or finite. The Bell and Stirling identities come from counting functions, surjections, partitions, and permutations; the EGF rules live in a commutative -algebra and use the library's formal power-series calculus rather than analytic convergence. That separation is deliberate, and This page fixes the Stirling-sign and exponential-generating-function conventions records it so the page does not blur the formal and analytic arguments.
3 · Logical flowchart
4 · Definitions, theorems and proofs
This page fixes the Stirling-sign and exponential-generating-function conventions
On this page:
- denotes the Stirling numbers of the second kind.
- denotes the signless Stirling numbers of the first kind, so counts permutations of with exactly cycles.
- denotes the signed first-kind numbers used in the inversion formulas.
All exponential generating functions are taken in a commutative -algebra, so the coefficients and the formal operations and of Formal exponential, logarithm, and binomial powers over a commutative -algebra are available. The page uses this hypothesis exactly where factorial denominators or formal exponential and logarithmic identities appear.
Set partitions and blocks
Definition
Let be a set. A set partition of is a family of nonempty subsets of such that:
- distinct members of are disjoint; and
- .
The members of are its blocks.
Equivalently, a set partition is a decomposition of into nonempty pairwise disjoint pieces. The empty set has one partition, namely the empty family.
The set partitions of a finite set form a finite set
Statement
For every natural number , the set of partitions of is finite. Consequently, for every , the set of partitions of into exactly blocks is finite as well.
Facts & Assumptions
Given: A natural number and a partition of in the sense of Set partitions and blocks.
Proof
If , then , whose only partition is the empty family. So the statement holds in the empty-set boundary case.
Assume . For a partition of , define by sending each to the least element of the block of containing . If and lie in the same block, then they have the same least block element. Conversely, if , then both and lie in the block containing that common least element, so they lie in the same block. Thus is recovered from the fibres of .
Therefore is injective from the set of partitions of into the function set . By The set of functions between finite sets is finite, with , the latter is finite. Hence the set of all partitions of is finite, and every subfamily of it, including the partitions with exactly blocks, is finite as well.
The Stirling numbers of the second kind and the Bell numbers
Definition
For , let be the set of partitions of into exactly blocks. By The set partitions of a finite set form a finite set, this set is finite.
The Stirling number of the second kind is
The Bell number is
the total number of set partitions of .
The definition includes the standard boundary values:
- because the empty family is the unique partition of ;
- for because a nonempty set cannot be partitioned into zero nonempty blocks; and
- for because distinct elements cannot be split into more than nonempty blocks.
The signed and signless Stirling numbers of the first kind
Definition
For , let be the set of permutations of with exactly cycles in the sense of Support, fixed points, disjoint cycles, cycle length, disjoint-cycle decompositions, and cycle type. This is a finite set because is finite by The Lehmer code gives again.
The signless Stirling number of the first kind is
The signed Stirling number of the first kind is
In particular, from the identity permutation of , and when or when and .
The rising factorial
Definition
For an indeterminate and , the rising factorial is
Thus , , and is the upward analogue of the falling factorial notation introduced in The factorial and the falling factorial , defined by recursion in .
Exponential generating functions over a commutative -algebra
Definition
Let be a commutative -algebra and let be a sequence in . Its exponential generating function is the formal series
formed inside Formal power series over a commutative ring and the coefficient-extraction functional .
The -algebra structure is part of the definition: it is what makes the scalars meaningful in . The resulting series is formal rather than analytic, and the formal and used later are those of Formal exponential, logarithm, and binomial powers over a commutative -algebra.
Labelled classes, labelled product, and the constructions , , , and boxed product
Definition
A labelled class assigns to each finite label set a finite set of -structures carried by , together with transport along bijections of label sets. Write
so the exponential generating function of is .
If and are labelled classes, their labelled product on a label set consists of triples where , , and . Thus the labels are split into two disjoint parts, one carrying the -object and the other the -object.
For a labelled class :
- is the class of finite ordered lists of pairwise disjoint -objects whose label sets partition the ambient label set;
- is the class of finite unordered sets of pairwise disjoint -objects whose label sets partition the ambient label set;
- is the class of finite cyclic arrangements of pairwise disjoint -objects whose label sets partition the ambient label set; and
- the boxed product is the subclass of in which the smallest label belongs to the -part.
All four constructions keep the source convention that labels are distinct and their union is the ambient finite label set.
As with the ordinary sequence construction, these formal labelled constructions need not define labelled classes in the finiteness sense when is nonempty. The translation theorem below therefore imposes the zero-constant-coefficient hypothesis exactly where it is needed.
The Stirling numbers of the second kind satisfy
Statement
For every and every ,
Facts & Assumptions
Given: A partition of into exactly nonempty blocks, with and , counted by The Stirling numbers of the second kind and the Bell numbers.
Proof
Look at the block containing the element . If that block is the singleton , deleting it leaves a partition of into exactly blocks. Conversely, adjoining to any partition of into blocks produces such a partition of . So the singleton case contributes .
If the block of is not a singleton, delete from that block. The remaining blocks form a partition of into exactly blocks, and the original partition is recovered by choosing one of those blocks and reinserting into it. So the nonsingleton case contributes .
The two cases are disjoint and exhaustive, so their counts add to . This gives the displayed recurrence.
The Bell numbers satisfy
Statement
For every ,
Facts & Assumptions
Given: A partition of , counted by The Stirling numbers of the second kind and the Bell numbers.
Proof
Let be the block containing , and let . Then is exactly the set of elements not lying in the distinguished block. If , there are choices for , and after that the elements of may be partitioned arbitrarily in ways.
Conversely, every choice of a subset and a partition of determines a unique partition of : put all elements of together with into one block and keep the chosen partition of for the other blocks.
Summing over all possible values gives the claimed recurrence for .
The Stirling numbers of the second kind are given by
Statement
For all ,
Facts & Assumptions
Given: The surjection-counting formula of The number of surjections from an -element set onto a -element set is , read in through and the second-kind definition of The Stirling numbers of the second kind and the Bell numbers.
Proof
A partition of into exactly blocks becomes a surjection once the blocks are labelled by the elements of . Conversely, the fibres of a surjection form a partition of into exactly nonempty blocks. Thus the number of surjections is .
By The number of surjections from an -element set onto a -element set is , read in through , that same number equals . Therefore
Dividing by the nonzero factorial from The factorial and the falling factorial , defined by recursion in gives the displayed formula.
Ordinary powers expand in the falling-factorial basis by the second-kind Stirling numbers
Statement
For all ,
Facts & Assumptions
Given: Naturals and .
Proof
The left-hand side counts all functions . Group those functions by the partition of into their nonempty fibres. If the image has size , then the fibres form a partition of into blocks, counted by .
Once such a -block partition is fixed, assigning distinct values of to its blocks is equivalent to choosing an ordered -tuple of distinct elements of , and there are exactly such choices by The factorial and the falling factorial , defined by recursion in .
Summing over all possible image sizes counts every function exactly once, so .
The signless first-kind Stirling numbers satisfy their recurrence and expand the rising factorial
Statement
For every and every ,
Moreover, for every ,
Facts & Assumptions
Given: The cycle decomposition conventions of Support, fixed points, disjoint cycles, cycle length, disjoint-cycle decompositions, and cycle type and the rising factorial of The rising factorial.
Proof
To build a permutation of with exactly cycles, start from a permutation of . Either forms a new one-cycle, which contributes possibilities, or else is inserted into one of the cyclic slots of a permutation with cycles, which contributes . These two constructions are disjoint and exhaustive, so the recurrence follows.
Let . Step 1.1 gives , and also .
The rising factorial satisfies the same recursion: and by The rising factorial. Therefore for all by induction on .
The signed first-kind and second-kind Stirling numbers are inverse transition matrices
Statement
For all ,
Consequently, for all ,
where is the Kronecker delta. Equivalently, for sequences and in any commutative ring,
Facts & Assumptions
Given: The second-kind expansion of Ordinary powers expand in the falling-factorial basis by the second-kind Stirling numbers and the first-kind expansion of The signless first-kind Stirling numbers satisfy their recurrence and expand the rising factorial.
Proof
Replace by in The signless first-kind Stirling numbers satisfy their recurrence and expand the rising factorial. Since and by definition, this gives .
A finite linear combination that vanishes for every has all coefficients zero: evaluating at gives , and after that evaluating at strips off the remaining coefficients triangularly because for and by The factorial and the falling factorial , defined by recursion in .
Substitute the second-kind expansion of Ordinary powers expand in the falling-factorial basis by the second-kind Stirling numbers into step 1.1. This gives .
Apply step 1.2 to the identity of step 2.1. Since the left-hand side is , the coefficient of is , so .
The matrix in step 3.1 is lower triangular with diagonal entries , so its inverse is unique. Since step 3.1 shows that is a left inverse of , it is also the right inverse. Hence as well.
Steps 3.1 and 4.1 say exactly that the two triangular Stirling matrices are inverse to one another. Therefore the two finite-sum transforms on sequences in any commutative ring are mutually inverse, which is the claimed iff.
The labelled constructions translate into the usual exponential-generating-function rules
Statement
Let and be labelled classes with exponential generating functions and over a commutative -algebra. Then:
If , then
For the boxed product,
and the constant term is , so
Facts & Assumptions
Given: The labelled constructions of Labelled classes, labelled product, and the constructions , , , and boxed product and the formal identities in Formal and are inverse homomorphisms and formal binomial powers obey the expected addition laws.
Proof
In the labelled product on an -label set, choosing the labels sent to the -part contributes possibilities, and then one chooses an -object on those labels and a -object on the complement. Thus the size- coefficient is , which is exactly the coefficient rule for the product of exponential generating functions.
For , a sequence of length is an -fold labelled product of with itself, so its EGF is . Summing over all gives , and because this formal geometric series equals .
A labelled set of exactly -objects is the same data as an ordered -tuple of pairwise disjoint -objects modulo permutation of the components. Therefore its EGF is , and summing over gives by Formal and are inverse homomorphisms and formal binomial powers obey the expected addition laws.
A labelled cycle of exactly -objects has linear representatives, so its EGF is . Summing over gives by Formal and are inverse homomorphisms and formal binomial powers obey the expected addition laws.
In a boxed product, the smallest label lies in the -part. On size- labels this is equivalent to choosing a pointed -object on some labels, with the distinguished label forced to be the smallest, and then a -object on the remaining labels. Pointing contributes the derivative , so the derivative of the boxed-product EGF is . Since no boxed product has size , the constant term is , and integrating from to gives the displayed formula.
Steps 1.1-3.1 are exactly the labelled symbolic-method rules claimed in the statement.
The two Stirling triangles have the expected vertical exponential generating functions
Statement
For every fixed ,
and
Facts & Assumptions
Given: The second-kind and first-kind definitions and the labelled symbolic rules of The labelled constructions translate into the usual exponential-generating-function rules.
Proof
A partition of into exactly blocks is a labelled set of exactly nonempty labelled sets. The EGF of a nonempty labelled set of atoms is , and taking an unordered set of exactly such blocks contributes the factor . Therefore
A permutation with exactly cycles is a labelled set of exactly labelled cycles of atoms. The EGF of one labelled cycle is , so the same labelled-set rule gives
Steps 1.1 and 1.2 are exactly the two claimed vertical exponential generating functions.
The exponential formula gives the Bell-number generating function
Statement
Let be a second formal indeterminate. In , the block-count-refined exponential generating function of set partitions is
In particular,
Facts & Assumptions
Given: The second-kind definition of The Stirling numbers of the second kind and the Bell numbers and the labelled symbolic rules of The labelled constructions translate into the usual exponential-generating-function rules.
Proof
A set partition is a labelled set of nonempty labelled sets. Marking each block by a factor of replaces the basic block EGF by . Applying the labelled-set rule therefore gives
Setting sums over all block counts and therefore replaces by . This yields .
Steps 1.1 and 2.1 prove the refined formula and its Bell-number specialization.
Dobinski's formula expresses the Bell numbers as
Statement
For every ,
Facts & Assumptions
Given: A natural number .
Ordinary powers expand as (Ordinary powers expand in the falling-factorial basis by the second-kind Stirling numbers).
The falling factorial satisfies for and for (The factorial and the falling factorial , defined by recursion in ).
The real exponential is defined by , and (The real exponential function and the number by a power series, The exponential is positive and satisfies ).
The Bell number is (The Stirling numbers of the second kind and the Bell numbers).
Proof
For a fixed , [F2] and the change of index give. [F2, F3, algebra] In particular each of these nonnegative series converges.
Substitute [F1] into the series in the Statement. Since the sum over . [F1, F4, step 1.1, algebra] is finite, it may be interchanged with the convergent nonnegative series, and step 1.1 yields
Multiplying step 2.1 by and using [F3] gives. [F3, step 2.1, algebra] This also covers , where is the natural-power base convention already used in [F1].
Standard labelled specializations give involutions, ordered Bell numbers, and partitions without singletons
Statement
Let be the number of involutions of , let be the number of ordered set partitions of , and let be the number of set partitions of having no singleton block. The labelled symbolic method gives the following exponential generating functions:
- involutions:
- ordered Bell numbers:
- set partitions with no singleton blocks:
Facts & Assumptions
Given: The labelled symbolic rules and the set-partition formulas already proved on this page.
Proof
An involution is a labelled set of fixed points and transpositions, so its EGF is .
An ordered Bell structure is a sequence of nonempty labelled sets. The EGF of one nonempty labelled set is , so the sequence rule gives .
A partition with no singleton blocks is a labelled set of blocks of size at least . Subtracting the singleton contribution from the basic block EGF leaves , and the set rule gives .
These are exactly the three claimed specializations.
The Lah numbers count ordered-block set partitions and expand the rising factorial in the falling basis
Statement
Let , let for , and for define
Then for every ,
Moreover, counts partitions of into exactly nonempty blocks, each equipped with a linear order.
Facts & Assumptions
Given: The rising and falling factorials of The rising factorial and The factorial and the falling factorial , defined by recursion in .
Proof
Fix and . Take a permutation of , written as a word of length , and choose of the gaps between consecutive letters. Cutting the word at those gaps produces an ordered list of nonempty ordered blocks. This gives ordered lists of ordered blocks.
Forgetting the left-to-right order of the blocks divides by , because every unordered family of internally ordered blocks has exactly linear orders of its blocks. Hence counts partitions of into nonempty linearly ordered blocks.
For , consider distinguishable boxes arranged from left to right. Building an ordered list inside each box by inserting the elements one after another gives possibilities. Grouping the outcomes by the number of nonempty boxes, one first chooses the underlying partition of into internally ordered blocks, counted by from step 2.1, and then chooses the occupied boxes in order, which gives possibilities. Summing over yields .
Steps 2.1 and 3.1 prove the counting interpretation and the falling-factorial expansion on natural arguments, together with the defining value .
Touchard's congruence: for prime ,
Statement
Let be prime and let . Then
Facts & Assumptions
Given: A prime number and the cyclic permutation of the last elements of .
If a partition is fixed by a permutation, then that permutation permutes the blocks of the partition.
Proof
Let act on the set of partitions of by relabelling the elements . Every orbit has size or , because has prime order . Therefore the total number is congruent modulo to the number of fixed partitions.
Let be fixed by . By [L1], permutes the blocks of . If one block of contains one of the last elements and also some element of , then fixes that element of and cycles the last elements transitively, so that block must contain all of . If instead a block containing one of the last elements is disjoint from , then its -orbit consists of pairwise disjoint blocks of the same size. Because there are exactly moved elements and is prime, this leaves only two possibilities: either all moved elements are singleton blocks, or they all lie in one block. In the singleton case the remaining elements may be partitioned arbitrarily, giving fixed partitions. In the one-block case the last elements lie in one block together with some subset ; choosing the complement and partitioning arbitrarily is exactly the construction counted in The Bell numbers satisfy , so this case contributes fixed partitions.
Every fixed partition is of one of those two types, and each nonfixed orbit has cardinality divisible by . Hence .
5 · Examples, counterexamples and false statements
None yet.
Sources
- Philippe Flajolet and Robert Sedgewick, Analytic Combinatorics — Symbolic Combinatorics
- Herbert S. Wilf, generatingfunctionology, 2nd ed.
- Andrew Lin, 18.212 Algebraic Combinatorics, Lecture 11: Stirling numbers and more
- Herbert S. Wilf, generatingfunctionology, 2nd ed., §3.6
- Andrew Lin, 18.212 Algebraic Combinatorics, Lecture 11
- Herbert S. Wilf, generatingfunctionology, 2nd ed., §3.5
- Falling and rising factorials (Wikipedia)
- Herbert S. Wilf, generatingfunctionology, 2nd ed., §2.3
- Herbert S. Wilf, generatingfunctionology, 2nd ed., §2.3 and ch. 3
- Combinatorics Through Guided Discovery, Bell numbers
- Andrew Lin, 18.212 Algebraic Combinatorics, Lecture 11, Theorem 2
- Andrew Lin, 18.212 Algebraic Combinatorics, Lecture 11, Corollary 4
- Herbert S. Wilf, generatingfunctionology, 2nd ed., §§3.5-3.6
- Herbert S. Wilf, generatingfunctionology, 2nd ed., §3.4
- Wolfram MathWorld, Dobiński's Formula
- Herbert S. Wilf, generatingfunctionology, 2nd ed., §3.8
- Kenneth P. Bogart, Combinatorics Through Guided Discovery, §3.1.5
- Greg Hurst and Andrew Schultz, An elementary (number theory) proof of Touchard's congruence