OFFSET
5,5
LINKS
Alois P. Heinz, Table of n, a(n) for n = 5..1000
FORMULA
G.f.: Sum_{i>0} x^(2*i+5) / Product_{j=1..5+i} (1-x^j).
EXAMPLE
a(7) = 1: [6,1].
a(8) = 1: [6,1,1].
a(9) = 3: [6,1,1,1], [6,2,1], [7,2].
a(10) = 4: [6,1,1,1,1], [6,2,1,1], [6,3,1], [7,2,1].
a(11) = 8: [6,1,1,1,1,1], [6,2,1,1,1], [6,2,2,1], [6,3,1,1], [6,4,1], [7,2,1,1], [7,2,2], [8,3].
MAPLE
b:= proc(n, i) option remember;
`if`(n=0 or i=1, 1, b(n, i-1)+`if`(i>n, 0, b(n-i, i)))
end:
a:= n-> add(b(n-2*m-5, min(n-2*m-5, m+5)), m=1..(n-5)/2):
seq(a(n), n=5..60);
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0 || i == 1, 1, b[n, i - 1] + If[i > n, 0, b[n - i, i]]];
a[n_] := Sum[b[n - 2 m - 5, Min[n - 2 m - 5, m + 5]], {m, 1, (n - 5)/2}];
a /@ Range[5, 60] (* Jean-François Alcover, Dec 07 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, May 20 2012
STATUS
approved