Difference between revisions of "Stirling number"
(→Stirling Numbers of the Second Kind) |
(→Stirling Numbers of the Second Kind) |
||
Line 11: | Line 11: | ||
For example, <math>S_2(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>. | For example, <math>S_2(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>. | ||
+ | |||
+ | |||
+ | They can be calculated using the following formula: | ||
+ | <cmath> S(n,k) = \frac{1}{k!}\sum_{j=0}^{k}(-1)^j{k \choose j} (k-j)^n </cmath> | ||
+ | |||
[[Category:Combinatorics]] | [[Category:Combinatorics]] |
Revision as of 10:13, 25 October 2010
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 subsets.
For example, because we have the partitions .
They can be calculated using the following formula: