login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

{1001->1}-transform of the Thue-Morse word A010060.
5

%I #4 May 10 2017 17:48:31

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

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

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

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

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

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

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

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

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

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

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

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

%Y Cf. A010060, A284933, A284934.

%K nonn,easy

%O 1

%A _Clark Kimberling_, May 10 2017