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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A286654 Characteristic sequence of the Beatty sequence, A022841, of sqrt(7). 2
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, 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, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1

COMMENTS

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

LINKS

Clark Kimberling, Table of n, a(n) for n = 1..10000

FORMULA

a(n) = 1 - floor((n+1)/(1-1/r) + floor(n(1-1/r)), where r = sqrt(7).

MATHEMATICA

r = Sqrt[7];

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

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

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

CROSSREFS

Cf. A022841, A285676.

Sequence in context: A094186 A267371 A285205 * A003849 A188034 A115199

Adjacent sequences:  A286651 A286652 A286653 * A286655 A286656 A286657

KEYWORD

nonn,easy

AUTHOR

Clark Kimberling, May 11 2017

STATUS

approved

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 16 14:20 EDT 2021. Contains 347472 sequences. (Running on oeis4.)