OFFSET
3,2
LINKS
Joerg Arndt, Alois P. Heinz and Vaclav Kotesovec, Table of n, a(n) for n = 3..4000 (first 1000 terms from Joerg Arndt and Alois P. Heinz)
EXAMPLE
a(3) = 1: [2,1].
a(4) = 3: [3,1], [1,2,1], [2,1,1].
a(5) = 9: [3,2], [4,1], [2,1,2], [3,1,1], [1,3,1], [2,2,1], [2,1,1,1], [1,1,2,1], [1,2,1,1].
MAPLE
b:= proc(n, i) option remember;
`if`(n=0, 1, convert(series(add(b(n-j, j)*
`if`(j<i, x, 1), j=1..n), x, 2), polynom))
end:
a:= n-> coeff(b(n, 0), x, 1):
seq(a(n), n=3..50);
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0, 1, Normal[Series[Sum[b[n - j, j]* If[j < i, x, 1], {j, 1, n}], {x, 0, 2}]]]; a[n_] := Coefficient[b[n, 0], x, 1]; Table[a[n], {n, 3, 50}] (* Jean-François Alcover, Feb 06 2015, after Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Joerg Arndt and Alois P. Heinz, Apr 26 2014
STATUS
approved