Difference between revisions of "Stirling number"
(→Stirling Numbers of the Second Kind) |
m (→See Also) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
== Stirling Numbers of the First Kind == | == Stirling Numbers of the First Kind == | ||
− | The Stirling number of the first kind | + | The '''Stirling number of the first kind''' <math>c(n, k)</math> is the number of [[permutation]]s of an <math>n</math>-[[element]] [[set]] with exactly <math>k</math> [[cycle of a permutation | cycles]]. |
− | For example, <math> | + | For example, <math>c(4, 2) = 11</math> because (writing all our permutations in [[cycle notation]]) we have the permutations <math>\{(1)(234), (1)(243), (134)(2),(143)(2),(124)(3),(142)(3),(123)(4),(132)(4), (12)(34), (13)(24), (14)(23)\}</math>. |
== Stirling Numbers of the Second Kind == | == Stirling Numbers of the Second Kind == | ||
− | The Stirling number of the second kind | + | The '''Stirling number of the second kind''' <math>S(n, k)</math> is the number of [[partition]]s of an <math>n</math>-element set into exactly <math>k</math> non-[[empty set |empty]] [[subset]]s. |
− | For example, <math> | + | For example, <math>S(4, 2) = 7</math> because we have the partitions <math>\{1 | 234, 2|134, 3|124, 4|123, 12|34, 13|24, 14|23\}</math>. |
+ | Stirling numbers of the second kind satisfy the [[recursion]] | ||
+ | <cmath>S(n + 1, k) = k S(n, k) + S(n, k - 1).</cmath> | ||
− | They can be calculated using the | + | (This can easily be shown by considering the cases that <math>n + 1</math> is in a part of size <math>1</math> or size larger than <math>1</math>.) They can also be calculated using the formula |
− | <cmath> S(n,k) = \frac{1}{k!}\sum_{j=0}^{k}(-1)^j{k \choose j} (k-j)^n </cmath> | + | <cmath> S(n,k) = \frac{1}{k!}\sum_{j=0}^{k}(-1)^j{k \choose j} (k-j)^n. </cmath> |
+ | The total number of partitions of an <math>n</math>-element set is <math>B_n = \sum_{k = 1}^n S(n, k)</math> and is called the <math>n</math>th [[Bell number]]. | ||
− | [[Category:Combinatorics | + | == See Also == |
+ | |||
+ | [[Category:Combinatorics] |
Latest revision as of 23:50, 14 May 2024
There are two kinds of Stirling numbers: Stirling numbers of the first kind and Stirling numbers of the second kind. They appear in many situations in combinatorics.
Stirling Numbers of the First Kind
The Stirling number of the first kind is the number of permutations of an -element set with exactly cycles.
For example, because (writing all our permutations in cycle notation) we have the permutations .
Stirling Numbers of the Second Kind
The Stirling number of the second kind is the number of partitions of an -element set into exactly non-empty subsets.
For example, because we have the partitions .
Stirling numbers of the second kind satisfy the recursion
(This can easily be shown by considering the cases that is in a part of size or size larger than .) They can also be calculated using the formula
The total number of partitions of an -element set is and is called the th Bell number.
See Also
[[Category:Combinatorics]