stirlingnumber1ku

Calulates the Stirling number of the fist kind - unsigned. They count the number of permutations of n elements with k disjoint cycles. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Integer n
  2. Integer k

Output

Stirling number

Examples

stirlingnumber1ku