OFFSET
1,2
COMMENTS
Let x be the solution of 1/x + 1/(x+1)^2 = 1. Then (floor(n x) and (floor(n (x+1)^2))) are a pair of Beatty sequences; i.e., every positive integer is in exactly one of the sequences. See the Guide to related sequences at A329825.
LINKS
Eric Weisstein's World of Mathematics, Beatty Sequence.
FORMULA
a(n) = floor(n*x), where x = 1.24697960371... is the constant in A255249.
MAPLE
A330002 := proc(n)
local x;
x := -2*cos(5*Pi/7) ;
floor(n*x) ;
end proc: # R. J. Mathar, Jan 11 2020
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jan 04 2020
STATUS
approved