login
Positions of 1 in A287773; complement of A287774.
5

%I #8 Oct 10 2017 02:50:42

%S 2,4,6,8,11,13,15,17,19,21,23,26,28,30,32,35,37,39,41,43,45,47,50,52,

%T 54,56,58,60,62,65,67,69,71,74,76,78,80,82,84,86,89,91,93,95,98,100,

%U 102,104,106,108,110,113,115,117,119,121,123,125,128,130,132

%N Positions of 1 in A287773; complement of A287774.

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

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

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

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

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

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

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

%Y Cf. A287772, A287773.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, Jun 03 2017