login
Positions of 1 in A288213; complement of A288215.
3

%I #4 Jun 08 2017 18:21:17

%S 3,6,7,10,13,14,16,17,20,23,24,27,30,31,33,34,37,38,40,41,44,47,48,51,

%T 54,55,57,58,61,64,65,68,71,72,74,75,78,79,81,82,85,88,89,91,92,95,96,

%U 98,99,102,105,106,109,112,113,115,116,119,122,123,126,129

%N Positions of 1 in A288213; complement of A288215.

%C -1 < 2 - a(n)/n < 0 for n >= 1.

%H Clark Kimberling, <a href="/A288215/b288215.txt">Table of n, a(n) for n = 1..10000</a>

%t s = {0, 0}; w[0] = StringJoin[Map[ToString, s]];

%t w[n_] := StringReplace[w[n - 1], {"00" -> "0010", "1" -> "010"}]

%t Table[w[n], {n, 0, 8}]

%t st = ToCharacterCode[w[11]] - 48 (* A288213 *)

%t Flatten[Position[st, 0]] (* A288214 *)

%t Flatten[Position[st, 1]] (* A288215 *)

%Y Cf. A288213, A288214.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, Jun 07 2017