OFFSET
0,4
COMMENTS
Each cycle is written with the smallest element first and cycles are arranged in increasing order of their first elements.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..450
Wikipedia, Permutation
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i>n, 0,
b(n, i+1)+b(n-i, i+1)*(i-1)!*binomial(n-1, i-1)))
end:
a:= n-> b(n, 1):
seq(a(n), n=0..30);
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0, 1, If[i > n, 0, b[n, i + 1] + b[n - i, i + 1]*(i - 1)!*Binomial[n - 1, i - 1]]];
a[n_] := b[n, 1];
Table[a[n], {n, 0, 30}] (* Jean-François Alcover, May 28 2018, from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, May 01 2017
STATUS
approved