OFFSET
1,2
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,13,-14,-24).
FORMULA
a(n) = (4^n + (-3)^n + 2^n + (-1)^n)/2 for n > 0.
From Colin Barker, Aug 07 2018: (Start)
G.f.: x*(1 + 13*x - 21*x^2 - 48*x^3) / ((1 + x)*(1 - 2*x)*(1 + 3*x)*(1 - 4*x)).
a(n) = 2*a(n-1) + 13*a(n-2) - 14*a(n-3) - 24*a(n-4) for n>4.
(End)
E.g.f.: (cosh(3*x/2) + cosh(7*x/2))*(cosh(x/2) + sinh(x/2)) - 2. - Stefano Spezia, Mar 20 2022
MATHEMATICA
CoefficientList[ Series[(-48x^3 - 21x^2 + 13x + 1)/(24x^4 + 14x^3 - 13x^2 - 2x + 1), {x, 0, 25}], x] (* or *)LinearRecurrence[{2, 13, -14, -24}, {1, 15, 22, 177}, 26] (* Robert G. Wilson v, Aug 07 2018 *)
PROG
(PARI) Vec(x*(1 + 13*x - 21*x^2 - 48*x^3) / ((1 + x)*(1 - 2*x)*(1 + 3*x)*(1 - 4*x)) + O(x^40)) \\ Colin Barker, Aug 07 2018
(Magma) [(4^n+(-3)^n+2^n+(-1)^n)/2: n in [1..30]]; // Vincenzo Librandi, Aug 08 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jinyuan Wang, Aug 07 2018
EXTENSIONS
More terms from Colin Barker, Aug 07 2018
STATUS
approved