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!)
A286654 Characteristic sequence of the Beatty sequence, A022841, of sqrt(7). 2

%I #7 Sep 01 2022 14:29:00

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

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

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

%N Characteristic sequence of the Beatty sequence, A022841, of sqrt(7).

%C The positions of 0 are given by A285676, and of 1, by A022841.

%H Clark Kimberling, <a href="/A286654/b286654.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(7). [corrected by _Georg Fischer_, Sep 01 2022]

%t r = Sqrt[7];

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

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

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

%Y Cf. A022841, A285676.

%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 April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)