OFFSET
0,6
COMMENTS
a(n) + 2a(n+2) + a(n+4) is the (n+4)th Fibonacci number.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
MATHEMATICA
nxt[{n_, a_, b_, c_, d_}]:={n+1, b, c, d, a+b+d+Which[Mod[n+1, 4] == 0, 0, Mod[ n+1, 4] == 1, 1, Mod[n+1, 4]==2, 0, True, -1]}; NestList[nxt, {3, 0, 0, 1, 1}, 40][[All, 2]] (* Harvey P. Dale, Mar 24 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
M. N. Deshpande (dpratap_ngp(AT)sancharnet.in), Feb 28 2006
EXTENSIONS
Edited by Don Reble, Mar 14 2006
STATUS
approved