A368528 a(n) = Sum_{k=1..n} k^2 * 3^(n-k).
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
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (6,-12,10,-3).
Programs
-
PARI
a(n) = sum(k=1, n, k^2*3^(n-k));