login
A121365
a(n) = 6*a(n-1) - 9*a(n-2) + n + 1.
1
1, 1, 1, 2, 9, 43, 185, 732, 2737, 9845, 34449, 118102, 398585, 1328607, 4384393, 14348912, 46633953, 150663529, 484275617, 1549681962, 4939611241, 15690529811, 49686677721, 156905298052, 494251688849
OFFSET
1,4
FORMULA
a(n) = (36 + (n-4)*3^n + 9*n)/36.
O.g.f.: -x*(-1+7*x-15*x^2+8*x^3)/((-1+x)^2*(3*x-1)^2). - R. J. Mathar, Dec 10 2007
MAPLE
A121365:= n-> (36 + (n-4)*3^n + 9*n)/36: seq(A121365(n), n=1..30); # Wesley Ivan Hurt, Apr 29 2014
MATHEMATICA
Table[(9*(n+4)+(n-4)*3^n)/36, {n, 25}]
CROSSREFS
Cf. A121968.
Sequence in context: A351882 A132847 A275620 * A018960 A371125 A217666
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Sep 06 2006
STATUS
approved