OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-2,-1,1).
FORMULA
a(n) = Fibonacci(n+1) + 2*n + 4. - Ralf Stephan, Feb 24 2004
From Elmo R. Oliveira, Apr 29 2026: (Start)
a(n) = 3*a(n-1) - 2*a(n-2) - a(n-3) + a(n-4).
G.f.: (5 - 8*x - x^2 + 2*x^3)/((1 - x)^2*(1 - x - x^2)). (End)
MATHEMATICA
RecurrenceTable[{a[0]==5, a[1]==7, a[n]==a[n-1]+a[n-2]-(2n-2)}, a, {n, 40}] (* Harvey P. Dale, Apr 23 2018 *)
(* Alternative: *)
LinearRecurrence[{3, -2, -1, 1}, {5, 7, 10, 13}, 40] (* Harvey P. Dale, Apr 23 2018 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Kurmang. Aziz. Rashid, Dec 02 2003
EXTENSIONS
More terms from Elmo R. Oliveira, Apr 29 2026
STATUS
approved
