login
Bisection of Kolakoski sequence A000002.
7

%I #14 Oct 06 2014 17:33:09

%S 2,1,2,2,1,2,1,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,2,2,1,2,2,1,2,1,

%T 1,2,2,1,1,2,1,2,1,1,2,2,1,2,1,2,2,1,1,2,2,1,2,1,1,2,1,1,2,1,1,2,1,2,

%U 2,1,2,2,1,1,2,1,2,2,1,1,2,1,2,1,1,2,2,1,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,2

%N Bisection of Kolakoski sequence A000002.

%C Lengths of runs of twos in A000002. - _Reinhard Zumkeller_, Aug 03 2013

%C As in the Kolakoski sequence itself, the length of runs in this sequence is 1 or 2 (see A100428). - _Jean-Christophe Hervé_, Oct 04 2014

%H Reinhard Zumkeller, <a href="/A100429/b100429.txt">Table of n, a(n) for n = 1..10000</a>

%o (Haskell)

%o a100429 n = a100429_list !! n

%o a100429_list = g a000002_list where g (_:v:vs) = v : g vs

%o -- _Reinhard Zumkeller_, Aug 03 2013

%Y Cf. A100428, A216345.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_, Nov 20 2004

%E More terms from _Joshua Zucker_, May 12 2006

%E Offset changed by _Reinhard Zumkeller_, Aug 03 2013