login
Positions in the Kolakoski sequence where A000002(n) is 1 if n is odd, or 2 if n is even.
2

%I #7 Mar 31 2012 13:22:26

%S 1,2,5,6,7,8,12,13,17,18,23,24,25,26,29,30,31,36,37,38,41,42,43,44,49,

%T 50,51,54,55,56,59,60,61,62,66,67,71,72,73,74,79,80,84,85,90,91,92,95,

%U 96,97,100,101,102,103,108,109,110,113,114,115,120,121,125

%N Positions in the Kolakoski sequence where A000002(n) is 1 if n is odd, or 2 if n is even.

%C Indices where A074290(n) = 0.

%H Nathaniel Johnston, <a href="/A074291/b074291.txt">Table of n, a(n) for n = 1..10000</a>

%e The Kolakoski sequence begins: 1,2,2,1,1,2,... Subtracting 1,2,1,2,1,2,... gives 0,0,1,-1,0,0,... so the sequence begins 1,2,5,6,...

%Y Cf. A074290.

%K nonn,easy

%O 1,2

%A _Jon Perry_, Sep 21 2002

%E Extended and offset corrected by _Nathaniel Johnston_, May 02 2011