OFFSET
1,2
COMMENTS
For n > 34, sum0 > sum1.
For all n > 140, a(n) = 24.
Indices of zeros: 4, 33, 47, 93.
MATHEMATICA
f[s_] := Join[s, {Mod[Max[Total@Select[s, EvenQ], Total@Select[s, OddQ]], Length[s] + 1]}]; Nest[f, {1, 2}, 100] (* Amiram Eldar, Mar 01 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Feb 29 2020
STATUS
approved