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

 


Positions of 1 in A286993; complement of A286994.
3

%I #4 May 20 2017 10:21:21

%S 1,2,6,7,11,15,16,20,24,25,29,30,34,38,39,43,47,48,52,53,57,61,62,66,

%T 70,71,75,79,80,84,85,89,93,94,98,102,103,107,108,112,116,117,121,125,

%U 126,130,134,135,139,140,144,148,149,153,157,158,162,163,167

%N Positions of 1 in A286993; complement of A286994.

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

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

%e As a word, A286993 = 11000110001000110..., in which 1 is in positions 1,2,6,7,11,....

%t s = Nest[Flatten[# /. {0 -> 1, 1 -> {1, 1, 0}}] &, {1}, 11]; (* Sturmian word A080764 *)

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

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

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

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

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

%Y Cf. A080764, A286993, A286994.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 19 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 22 19:55 EDT 2024. Contains 376138 sequences. (Running on oeis4.)