OFFSET
1,2
COMMENTS
Let r = (3+sqrt(17))/4. Then (floor(n*r)) and (floor(n*r + r/2)) are a pair of Beatty sequences; i.e., every positive integer is in exactly one of the sequences. The sequence (a(n) mod 2)) of 0's and 1's has only two run-lengths: 4 and 5.
More generally, suppose that t > 0. There exists an irrational number r such that (floor(n*r)) and (floor(n(r+t)) are a pair of Beatty sequences. Specifically, r = (2 - t + sqrt(t^2 + 4))/2, as in the Mathematica code below. See Comments at A182760.
************
Guide to related sequences:
Starts to deviate from A059565 at a(73). - R. J. Mathar, Nov 26 2019
Sequences for t = 5/4, 4/5 and 3 corrected by Georg Fischer, Aug 22 2021
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Beatty Sequence.
FORMULA
a(n) = floor(r*n), where r = (3+sqrt(17))/4.
MATHEMATICA
PROG
(PARI) a(n)=(sqrtint(17*n^2)+3*n)\4 \\ Charles R Greathouse IV, Jan 25 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Nov 22 2019
STATUS
approved