OFFSET
1,4
COMMENTS
A finite sequence with A038093(4) = 97 terms.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..97
N. J. A. Sloane, Transforms
FORMULA
Take Weigh transform of A038082 and shift right.
MAPLE
weigh:= proc(p) proc(n) `if`(n<0, 1, coeff(mul((1+x^k)^p(k), k=1..n), x, n)) end end: wsh:= p-> n-> weigh(p)(n-1): a:= wsh(n-> `if`(n>0 and n<12, [1$3, 2$5, 1$3][n], 0)): seq(a(n), n=1..97); # Alois P. Heinz, Sep 10 2008
MATHEMATICA
a = Drop[CoefficientList[ Series[x (1 + x) (1 + x^2) (1 + x^3) (1 + x^4), {x, 0, 11}], x], 1]; nn = 97; Drop[ CoefficientList[ Series[x Product[(1 + x^i)^a[[i]], {i, 1, 11}], {x, 0, nn}], x], 1] (* Geoffrey Critzer, Aug 01 2013 *)
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Christian G. Bower, Jan 04 1999
STATUS
approved