login
A061983
a(n) = 3^n - (3*n^2 + n + 2)/2.
2
0, 0, 1, 11, 54, 202, 671, 2109, 6460, 19556, 58893, 176959, 531218, 1594062, 4782667, 14348561, 43046328, 129139720, 387419993, 1162260915, 3486783790, 10460352530, 31381058871, 94143178021, 282429535604, 847288608492, 2541865827301, 7625597483879, 22876792453770
OFFSET
0,4
FORMULA
G.f.: x^2*(1 + 5*x)/((1 - x)^3*(1 - 3*x)). - Andrew Howroyd, Dec 28 2024
PROG
(PARI) a(n) = { 3^n - (3*n^2 + n + 2)/2 } \\ Harry J. Smith, Jul 29 2009
CROSSREFS
Column of A061980.
Sequence in context: A213840 A110159 A309921 * A079884 A200172 A348025
KEYWORD
nonn
AUTHOR
Henry Bottomley, May 24 2001
STATUS
approved