OFFSET
0,2
LINKS
Hakan Icoz, Table of n, a(n) for n = 0..20000
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
From Joerg Arndt, Aug 23 2020: (Start)
G.f.: (1 + 12*x + 10*x^2 + 12*x^3 + x^4)/((1 - x^2)^2*(1-x)).
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5). (End)
a(n)= A298036(n) + a(n-1). - Hakan Icoz, Aug 23 2020
EXAMPLE
a(1) = 12 + 1 = 13
a(2) = 12 + 13 = 25
a(3) = 36 + 25 = 61
MATHEMATICA
LinearRecurrence[{1, 2, -2, -1, 1}, {1, 13, 25, 61, 85}, 100] (* Paolo Xausa, Jul 20 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 22 2018
EXTENSIONS
a(7)-a(50) from Hakan Icoz, Aug 22 2020
STATUS
approved