login
Positions of 0 in A287790; complement of A287792.
3

%I #4 Jun 04 2017 18:18:29

%S 1,2,6,7,8,10,11,15,16,17,21,22,23,25,26,30,31,32,34,35,39,40,41,45,

%T 46,47,49,50,54,55,56,60,61,62,64,65,69,70,71,73,74,78,79,80,84,85,86,

%U 88,89,93,94,95,97,98,102,103,104,108,109,110,112,113,117

%N Positions of 0 in A287790; complement of A287792.

%C -1 < n*r - a(n) < 3 for n >= 1, where r = (-3 + 3*sqrt(5))/2.

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

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

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

%t w1 = StringReplace[w, {"0" -> "001", "1" -> "110"}]

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

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

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

%Y Cf. A287790, A287792.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, Jun 03 2017