The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A286655 Characteristic sequence of the Beatty sequence, A022842, of sqrt(8). 2

%I

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

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

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

%N Characteristic sequence of the Beatty sequence, A022842, of sqrt(8).

%C The positions of 0 are given by A286323, and of 1, by A022842.

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

%F a(n) = 1 - floor((n+1)/(1-1/r) + floor(n(1-1/r)), where r = sqrt(8).

%t r = Sqrt[8];

%t s = 1 - Table[Floor[(n + 1) (1 - 1/r) - Floor[n (1 - 1/r)]], {n, 1, 200}] (* A286655 *)

%t Flatten[Position[s, 0]] (* A286323 *)

%t Flatten[Position[s, 1]] (* A022842 *)

%Y Cf. A022842, A286323.

%K nonn,easy

%O 1

%A _Clark Kimberling_, May 11 2017

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

Last modified September 17 03:42 EDT 2021. Contains 347478 sequences. (Running on oeis4.)