combinat::stirling2 – Stirling numbers of the second kind
combinat::stirling2(n,k) computes the Stirling numbers of the second kind.
Call:
combinat::stirling2(n, k)
Parameters:
n, k: |
nonnegative integers |
Return Value:
a nonnegative integer.
Details:
combinat::stirling2(n,k) computes the number of ways of partitioning a set of n elements into k non-empty subsets.
combinat::stirling2(n,k) is calculated using the formula
.
One can partition the set into
combinat::stirling2(3,2)
combinat::stirling2(3)
Error: Two arguments expected. [combinat::stirling2]