login
{01->0}-transform of the Thue-Morse word A010060.
3

%I #8 May 06 2017 19:54:30

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

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

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

%N {01->0}-transform of the Thue-Morse word A010060.

%C This is also the {10->0}-transform of the Thue-Morse word A010060.

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

%e As a word, A010060 = 0110100110010110100101100..., and replacing each 01 by 0 gives 01000100010000100100010001...

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

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

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

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

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

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

%Y Cf. A010060, A285958, A285959.

%K nonn,easy

%O 1

%A _Clark Kimberling_, May 05 2017