OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, -2, 1).
FORMULA
O.g.f.: -(1+x+5*x^2)/(-1+x-2*x^2+x^3) . - R. J. Mathar, Dec 10 2007
MATHEMATICA
a[0] = 1; a[1] = 2; a[2] = 5; a[n_] := a[n] = a[n - 1] - 2a[n - 2] + a[n - 3]; Table[ a[n], {n, 0, 40}]
LinearRecurrence[{1, -2, 1}, {1, 2, 5}, 50] (* Harvey P. Dale, Dec 05 2012 *)
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Zak Seidov, Aug 25 2006
EXTENSIONS
Offset adapted to definition by Georg Fischer, Jun 18 2021
STATUS
approved