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!)
A368528 a(n) = Sum_{k=1..n} k^2 * 3^(n-k). 1
0, 1, 7, 30, 106, 343, 1065, 3244, 9796, 29469, 88507, 265642, 797070, 2391379, 7174333, 21523224, 64569928, 193710073, 581130543, 1743391990, 5230176370, 15690529551, 47071589137, 141214767940, 423644304396, 1270932913813, 3812798742115 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
G.f.: x * (1+x)/((1-3*x) * (1-x)^3).
a(n) = 6*a(n-1) - 12*a(n-2) + 10*a(n-3) - 3*a(n-4).
a(n) = A052150(n-1) + A052150(n-2) for n > 1.
a(n) = (3^(n+1) - (n^2 + 3*n + 3))/2.
a(0) = 0; a(n) = 3*a(n-1) + n^2.
PROG
(PARI) a(n) = sum(k=1, n, k^2*3^(n-k));
CROSSREFS
Sequence in context: A276289 A062455 A364655 * A085277 A269084 A055269
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Dec 28 2023
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 May 1 03:54 EDT 2024. Contains 372148 sequences. (Running on oeis4.)