OFFSET
1,1
COMMENTS
This sequence is the image of the Kolakoski sequence A000002 under the morphism 1->1, 2->01. - Gabriele Fici, Aug 12 2013
LINKS
Jean-Marc Fedou and Gabriele Fici, Some remarks on differentiable sequences and recursivity, Journal of Integer Sequences 13(3): Article 10.3.2 (2010).
FORMULA
MATHEMATICA
a2 = {1, 2, 2}; Do[ a2 = Join[a2, {1 + Mod[n - 1, 2]}], {n, 3, 105}, {i, 1, a2[[n]]}]; a[n_] := Mod[a2[[n]] + a2[[n + 1]], 2]; Table[a[n], {n, 1, 105}] (* Jean-François Alcover, Jun 18 2013 *)
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Benoit Cloitre, Feb 14 2009
STATUS
approved