login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A152692 a(n) = n*3^n - n*2^n - n*1^n. 1
0, 0, 8, 54, 256, 1050, 3984, 14406, 50432, 172530, 580240, 1926078, 6328128, 20619690, 66732176, 214742070, 687698944, 2193154530, 6968850192, 22073006382, 69714716480, 219623377050, 690291036688, 2165100175014 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
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
Cf. A152691.
Sequence in context: A259546 A355553 A122657 * A351845 A037966 A091433
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Offset changed from 1 to 0 by Vincenzo Librandi, Sep 05 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)