A368529 a(n) = Sum_{k=1..n} k^2 * 4^(n-k).
0, 1, 8, 41, 180, 745, 3016, 12113, 48516, 194145, 776680, 3106841, 12427508, 49710201, 198841000, 795364225, 3181457156, 12725828913, 50903315976, 203613264265, 814453057460, 3257812230281, 13031248921608, 52124995686961, 208499982748420, 833999930994305
Offset: 0
Links
- Paolo Xausa, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (7,-15,13,-4).
Programs
-
Mathematica
LinearRecurrence[{7, -15, 13, -4}, {0, 1, 8, 41}, 30] (* Paolo Xausa, Jan 29 2024 *)
-
PARI
a(n) = sum(k=1, n, k^2*4^(n-k));