OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,3,-1,-2).
FORMULA
a(n) = 1+4*2^n/9+(-1)^n*(n/3-4/9).
G.f.: ( 1+x-2*x^2-4*x^3 ) / ( (2*x-1)*(x-1)*(1+x)^2 ).
a(n) = 3*a(n-2) + 2*a(n-3) - 4, for n>2. - Greg Dresden, Feb 21 2020
E.g.f.: (1/9)*(4*cosh(2*x) + (13 + 3*x)*sinh(x) + cosh(x)*(5 - 3*x + 8*sinh(x))). - Stefano Spezia, Feb 22 2020
MATHEMATICA
LinearRecurrence[{1, 3, -1, -2}, {1, 2, 3, 4}, 40] (* Harvey P. Dale, Aug 03 2018 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jan 22 2008
EXTENSIONS
More terms from Harvey P. Dale, Aug 03 2018
STATUS
approved