login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A162500
Expansion of the polynomial (1-x^3) * (1-x^6) * (1-x^9) / (1-x)^3.
1
1, 3, 6, 9, 12, 15, 17, 18, 18, 17, 15, 12, 9, 6, 3, 1
OFFSET
0,2
COMMENTS
This is a row of the triangle A162499.
Only finitely many terms are nonzero.
MAPLE
m:=3: seq(coeff(series(mul((1-x^(3*i)), i=1..m)/(1-x)^m, x, n+1), x, n), n=0..16); # Muniru A Asiru, Jul 07 2018
MATHEMATICA
CoefficientList[ Series[Times @@ (1 - x^(3 Range@3))/(1 - x)^3, {x, 0, 40}], x] (* Wesley Ivan Hurt, Sep 13 2014 and slightly modified by Robert G. Wilson v, Jul 23 2018 *)
PROG
(PARI) x='x+O('x^16); Vec((1-x^3)*(1-x^6)*(1-x^9)/(1-x)^3) \\ G. C. Greubel, Jul 06 2018
(Magma) m:=16; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1-x^3)*(1-x^6)*(1-x^9)/(1-x)^3)); /* complete row without zeros */ // G. C. Greubel, Jul 06 2018
CROSSREFS
Cf. A162499.
Sequence in context: A331060 A329514 A346951 * A191405 A198263 A276192
KEYWORD
nonn,fini,full
AUTHOR
N. J. A. Sloane, Dec 02 2009
STATUS
approved