login
Positions of 1 in A286925; complement of A286926.
3

%I #4 May 18 2017 21:47:42

%S 6,12,20,26,34,40,46,54,60,68,74,80,88,94,102,108,116,122,128,136,142,

%T 150,156,162,170,176,184,190,198,204,210,218,224,232,238,244,252,258,

%U 266,272,278,286,292,300,306,314,320,326,334,340,348,354,360,368,374

%N Positions of 1 in A286925; complement of A286926.

%C a(n) - a(n-1) is in {6,8} for n>=2, and a(n)/n -> 4 + sqrt(8).

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

%F a(n) = 2*A001952(n).

%e As a word, A286925 = 00000100000100000001..., in which 1 is in positions 6,12,20,26,34,....

%t s = Nest[Flatten[# /. {0 -> 1, 1 -> {1, 1, 0}}] &, {1}, 11]; (* Sturmian word A080764 *)

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

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

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

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

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

%Y Cf. A080764, A286925, A286926.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, May 18 2017