This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Mathematical Functions / Combinatorial  /
StirlingS2

  • StirlingS2[ n , m ] gives the Stirling number of the second kind .
  • Integer mathematical function (see Section A.3.10).
  • gives the number of ways of partitioning a set of elements into non-empty subsets.
  • See the Mathematica book: Section 3.2.5.

    Further Examples

    These are the number of ways of partitioning a set of 5 elements into 2 non-empty subsets.

    In[1]:=

    Out[1]=