The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A285685 Characteristic sequence of the Beatty sequence, A022839, of sqrt(5). 1

%I #10 Aug 31 2022 13:30:07

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

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

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

%N Characteristic sequence of the Beatty sequence, A022839, of sqrt(5).

%C The positions of 0 are given by A108598, and of 1, by A022839.

%H Clark Kimberling, <a href="/A285685/b285685.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(5). [corrected by _Georg Fischer_, Aug 31 2022]

%t r = Sqrt[5]; 1 - Table[Floor[(n + 1) (1 - 1/r) - Floor[n (1 - 1/r)]], {n, 1, 200}]

%Y Cf. A022839, A108598.

%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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 15 21:53 EDT 2024. Contains 372549 sequences. (Running on oeis4.)