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

 


Positions of 0 in A286691; complement of A286693.
3

%I #4 May 13 2017 17:21:59

%S 1,3,4,6,9,10,12,13,15,18,19,21,22,24,25,27,30,31,33,34,36,39,40,42,

%T 43,45,46,48,51,52,54,55,57,60,61,63,64,66,69,70,72,73,75,76,78,81,82,

%U 84,85,87,90,91,93,94,96,97,99,102,103,105,106,108,111,112

%N Positions of 0 in A286691; complement of A286693.

%C a(n) - a(n-1) is in {1,2,3} for n>=2, and a(n)/n -> 4 - sqrt(8).

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

%e As a word, A286691 = 0100101100100101100100100101100100..., in which 0 is in positions 1,3,4,6,9,...

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

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

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

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

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

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

%Y Cf. A171588, A286691, A286693.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 13 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 20 13:29 EDT 2024. Contains 376072 sequences. (Running on oeis4.)