login
{1010->1}-transform of the Thue-Morse word A010060.
3

%I #5 May 09 2017 17:39:22

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

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

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

%N {1010->1}-transform of the Thue-Morse word A010060.

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

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

%e As a word, A010060 = 0110100110010110100101100..., and replacing each 1010 by 1 gives 0110110010110101100110110010...

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

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

%t w1 = StringReplace[w, {"1010" -> "1"}]

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

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

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

%Y Cf. A010060, A286401, A286402.

%K nonn,easy

%O 1

%A _Clark Kimberling_, May 09 2017