OFFSET
1,3
COMMENTS
For the definition of this sequence we assume A088568(0) = 0.
EXAMPLE
MATHEMATICA
Map[First, Values@ #] - 1 &@ PositionIndex@ Prepend[#, 0] &@ MapIndexed[3 First@ #2 - 2 #1 &, Accumulate@ Prepend[Nest[Flatten[Partition[#, 2] /. {{2, 2} -> {2, 2, 1, 1}, {2, 1} -> {2, 2, 1}, {1, 2} -> {2, 1, 1}, {1, 1} -> {2, 1}}] &, {2, 2}, 25], 1]] (* Michael De Vlieger, Jun 12 2017, after Birkas Gyorgy at A000002 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jun 11 2017
STATUS
approved