OFFSET
0,4
COMMENTS
The Stirling-Frobenius cycle numbers are defined in A225470.
LINKS
Vincenzo Librandi, Rows n = 0..50, flattened
Peter Luschny, Generalized Eulerian polynomials.
Peter Luschny, The Stirling-Frobenius numbers.
FORMULA
EXAMPLE
[n\k][ 0, 1, 2, 3, 4, 5]
[0] 1,
[1] 1, 1,
[2] 3, 4, 2,
[3] 15, 23, 18, 6,
[4] 105, 176, 172, 96, 24,
[5] 945, 1689, 1900, 1380, 600, 120.
MATHEMATICA
SFCO[n_, k_, m_] := SFCO[n, k, m] = If[ k > n || k < 0, Return[0], If[ n == 0 && k == 0, Return[1], Return[ k*SFCO[n - 1, k - 1, m] + (m*n - 1)*SFCO[n - 1, k, m]]]]; Table[ SFCO[n, k, 2], {n, 0, 8}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jul 02 2013, translated from Sage *)
PROG
(Sage)
@CachedFunction
def SF_CO(n, k, m):
if k > n or k < 0 : return 0
if n == 0 and k == 0: return 1
return k*SF_CO(n-1, k-1, m) + (m*n-1)*SF_CO(n-1, k, m)
for n in (0..8): [SF_CO(n, k, 2) for k in (0..n)]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Luschny, May 19 2013
STATUS
approved