OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (10,-35,50,-24).
FORMULA
a(n) = A134165(n) - 2.
a(n) = 2^(2*n-1) - 3^n + 5*2^(n-1) - 3.
G.f.: (1 - 4*x - 3*x^2 + 24*x^3)/((1 - x)*(1 - 2*x)*(1 - 3*x)*(1 - 4*x)).
E.g.f.: exp(x)*(2*exp(3*x) - 3*exp(2*x) + 5*exp(x) - 3). - Stefano Spezia, Mar 03 2025
MATHEMATICA
LinearRecurrence[{10, -35, 50, -24}, {1, 6, 22, 84}, 30] (* Paolo Xausa, Mar 02 2025 *)
PROG
(PARI) a(n) = 2^(2*n-1) - 3^n + 5*2^(n-1) - 3
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Andrew Howroyd, Dec 12 2024
STATUS
approved