OFFSET
1,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (10,-38,68,-57,18).
FORMULA
a(n) = (3^(n-1) - 1)*(n-3)/2 + 2^(n-1) - 1.
From Elmo R. Oliveira, Jul 05 2026: (Start)
G.f.: x^3*(3 - 10*x + 9*x^2) / ((1 - x)^2 * (1 - 2*x) * (1 - 3*x)^2).
E.g.f.: (-1 + (1 - x)*exp(x) + (x - 1)*exp(3*x) + exp(2*x))/2.
a(n) = 10*a(n-1) - 38*a(n-2) + 68*a(n-3) - 57*a(n-4) + 18*a(n-5) for n > 5. (End)
MATHEMATICA
LinearRecurrence[{10, -38, 68, -57, 18}, {0, 0, 3, 20, 95}, 35] (* James C. McMahon, Jan 07 2025 *)
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Ocean Wong, Jan 01 2025
STATUS
approved
