login
Positions of 1 in A288203; complement of A288204.
3

%I #8 Nov 26 2018 04:14:32

%S 3,6,10,13,17,21,25,28,32,36,40,44,48,52,56,59,63,67,71,75,79,83,87,

%T 91,95,99,103,107,111,115,119,122,126,130,134,138,142,146,150,154,158,

%U 162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222

%N Positions of 1 in A288203; complement of A288204.

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

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

%F a(n) = Sum_{k=1..n} 4 - A036987(k) (conjecture). - _Jon Maiga_, Nov 25 2018

%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 (* A288203 *)

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

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

%Y Cf. A288203, A288204, A036987.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, Jun 07 2017