login
{0->01}-transform of the Sturmian word A080764.
3

%I #5 May 17 2017 17:58:11

%S 1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1,0,

%T 1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,

%U 0,1,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1

%N {0->01}-transform of the Sturmian word A080764.

%C A080764 = 1101101110110111011011011101..., and replacing each 0 by 01 gives

%C 11011101111011101111011101110111..., in which the positions of 0 are given by A286923, and of 1, by A286924.

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

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

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

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

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

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

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

%Y Cf. A080764, A286923, A286924.

%K nonn,easy

%O 1

%A _Clark Kimberling_, May 17 2017