OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2097
MAPLE
b:= proc(n, i) option remember; `if`(n=0 or i<2, add(
Stirling2(n, j), j=0..3), add(b(n-i*j, i-1), j=0..n/i))
end:
a:= n-> b(n$2):
seq(a(n), n=0..40);
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0 || i < 2, Sum[StirlingS2[n, j], {j, 0, 3}], Sum[b[n - i j, i - 1], {j, 0, n/i}]];
a[n_] := b[n, n];
a /@ Range[0, 40] (* Jean-François Alcover, Dec 07 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Oct 20 2018
STATUS
approved