login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A286726 {0->10, 1->01}-transform of the Pell word, A171588. 1

%I #6 May 14 2017 15:53:24

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

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

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

%N {0->10, 1->01}-transform of the Pell word, A171588.

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

%e As a word, A171588 = 001001000100100010010010001001000..., and replacing each 0 by 10 and each 1 by 01 gives 1010011010011010100110100110101001101...

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

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

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

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

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

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

%Y Cf. A171588, A286686, A286687.

%K nonn,easy

%O 1

%A _Clark Kimberling_, May 14 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 7 19:42 EDT 2024. Contains 372313 sequences. (Running on oeis4.)