close
login
A285685
Characteristic sequence of the Beatty sequence, A022839, of sqrt(5).
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, 1, 0, 1, 0, 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, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0
OFFSET
1
COMMENTS
The positions of 0 are given by A108598, and of 1, by A022839.
LINKS
FORMULA
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]
MATHEMATICA
r = Sqrt[5]; 1 - Table[Floor[(n + 1) (1 - 1/r) - Floor[n (1 - 1/r)]], {n, 1, 200}]
CROSSREFS
Sequence in context: A139312 A323239 A376451 * A287773 A173923 A260393
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 11 2017
STATUS
approved