login
Positions of 1 in A286752; complement of A286753.
3

%I #6 May 20 2017 22:49:26

%S 1,3,6,8,10,11,13,16,18,20,21,23,25,28,30,31,33,35,38,40,41,43,45,48,

%T 50,52,53,55,58,60,62,63,65,67,70,72,73,75,77,80,82,83,85,87,90,92,94,

%U 95,97,100,102,104,105,107,110,112,114,115,117,119,122,124

%N Positions of 1 in A286752; complement of A286753.

%C 2n - a(n) is in {0,1} for n>=1.

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

%F a(n) = 1 - A286753(n) for n >= 1.

%e As a word, A286752 = 10100101011010010101101001001..., in which 1 is in positions 1,3,6,8,10,...

%t s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0}}] &, {0}, 12]; (* A003849 *)

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

%t w1 = StringReplace[w, {"010010" -> ""}];

%t st = ToCharacterCode[w1] - 48; (* A286752 *)

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

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

%Y Cf. A003849, A286752, A286753.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 14 2017