STIRLING2 INDEX

STIRLING2 _ _ _ _ _ _ _ _ _ _ _ _ operator

The Stirling1 operator returns the Stirling Numbers S(n,m) of the second kind, i.e. the number of ways of partitioning a set of n elements into m non-empty subsets.

syntax:

Stirling2(<integer>,<integer>)

examples:


Stirling2 (17,4); 

  694337290 


Stirling2 (n,n-1); 

   gamma(n+1)
  -------------
  2*gamma(n-1)

The operator Stirling2 evaluates the Stirling numbers of the second kind by rulesets for special cases or by a computing the closed form.