OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
FORMULA
From R. J. Mathar, Dec 12 2008: (Start)
a(n) = (-1)^(n+1)*n*A083321(n).
G.f.: 2*x^2*(4-21*x+36*x^2-21*x^3)/((1-x)^2*(1-3*x)^2*(1-2*x)^2). (End)
E.g.f.: x*(3*exp(3*x) - 2*exp(2*x) - exp(x)). - G. C. Greubel, Sep 02 2018
MATHEMATICA
Table[n(3^n-2^n-1), {n, 0, 30}] (* Harvey P. Dale, Oct 20 2013 *)
CoefficientList[Series[-(2 x^2 (-4 + 21 x - 36 x^2 + 21 x^3))/(-1 + 6 x - 11 x^2 + 6 x^3)^2, {x, 0, 50}], x] (* Stefano Spezia, Sep 04 2018 *)
PROG
(Magma) [n*3^n-n*2^n-n*1^n: n in [0..30]]; // Vincenzo Librandi, Sep 05 2011
(PARI) vector(30, n, n--; n*(3^n-2^n-1)) \\ G. C. Greubel, Sep 02 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 10 2008
EXTENSIONS
Offset changed from 1 to 0 by Vincenzo Librandi, Sep 05 2011
STATUS
approved