OFFSET
0,4
COMMENTS
The first negative term is a(82) = -69.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
MATHEMATICA
f[-4] = 0; f[-3] = 0; f[-2] = 0; f[-1] = 0; f[0] = 1; f[1] = 1;
f[n_] := f[n] = f[n - 2] + f[n - 3] - Floor[f[n - 4]/2] - Floor[f[n - 6]/2]
Table[f[n], {n, 0, 50}]
nxt[{a_, b_, c_, d_, e_, f_}]:= {b, c, d, e, f, e+d-Floor[c/2]-Floor[a/2]}; NestList[ nxt, {1, 1, 1, 2, 2, 3}, 50][[All, 1]] (* Harvey P. Dale, Sep 18 2020 *)
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Nov 22 2010
STATUS
approved