OFFSET
5,2
LINKS
MAPLE
weigh:= proc(p) proc(n) local x, k; coeff(series(mul((1+x^k)^p(k), k=1..n), x, n+1), x, n) end end: wsh:= p-> n-> weigh(p)(n-1): f:= n-> `if`(n>0 and n<12, [1$3, 2$5, 1$3][n], 0): a:= wsh(f)-f: seq(a(n), n=5..97); # Alois P. Heinz, Sep 10 2008
MATHEMATICA
f[n_]:=Nest[CoefficientList[Series[Product[(1+x^i)^#[[i]], {i, 1, Length[#]}], {x, 0, 50}], x]&, {1}, n]; Drop[f[4]-PadRight[f[3], Length[f[4]]], 4] (* Geoffrey Critzer, Aug 01 2013 *)
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Christian G. Bower, Jan 04 1999
STATUS
approved