OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,0,-1).
FORMULA
a(n) = 1+A022120(n-2), n>2. - R. J. Mathar, Mar 15 2011
G.f.: -x^2*(-5+6*x) / ( (x-1)*(x^2+x-1) ). - R. J. Mathar, Mar 15 2011
MATHEMATICA
Join[{a=0, b=5}, Table[c=a+b-1; a=b; b=c, {n, 100}]]
nxt[{a_, b_}]:={b, a+b-1}; NestList[nxt, {0, 5}, 40][[All, 1]] (* Harvey P. Dale, Nov 03 2022 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Mar 15 2011
STATUS
approved