login
Positions of 0 in A286336; complement of A286338.
3

%I #6 May 09 2017 00:14:48

%S 1,2,3,4,7,8,10,11,12,13,15,18,19,20,21,22,25,26,28,31,32,33,34,35,37,

%T 38,39,40,43,44,46,47,48,49,51,54,55,56,57,58,60,61,62,63,66,67,69,72,

%U 73,74,75,76,79,80,82,83,84,85,87,90,91,92,93,94,97,98

%N Positions of 0 in A286336; complement of A286338.

%C Conjecture: a(n)/n -> 3/2.

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

%e As a word, A286336 = 0000110010000101100000110..., in which 0 is in positions 1,2,3,4,7,8,10,...

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

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

%t w1 = StringReplace[w, {"1101" -> "0"}]

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

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

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

%Y Cf. A010060, A286336, A286338.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 08 2017