OFFSET
0,1
COMMENTS
All terms are multiples of 9.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 2, 0, -1).
FORMULA
From R. J. Mathar, May 21 2009: (Start)
G.f.: 9*(3+4*x+3*x^2)/((x-1)^2*(1+x)^2).
a(n) = 45*(n+1)/2 + 9*(-1)^n*(n+1)/2. (End)
a(n+4) = 2*a(n+2) - a(n). - Jianing Song, Feb 04 2019
MATHEMATICA
Table[(9/2)(5 + (-1)^n)(n + 1), {n, 0, 40}] (* Jean-François Alcover, Feb 02 2019 *)
LinearRecurrence[{0, 2, 0, -1}, {27, 36, 81, 72}, 50] (* Harvey P. Dale, Nov 07 2019 *)
PROG
(PARI) a(n) = 45*(n+1)/2 + 9*(-1)^n*(n+1)/2 \\ Jianing Song, Feb 04 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Nov 22 2008
EXTENSIONS
Edited by R. J. Mathar, May 21 2009
STATUS
approved