OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Beatty Sequence
FORMULA
a(n) = floor(n * r), where r = 1.57014731219605436291... (see A293506).
EXAMPLE
a(2) = floor(2 * 1.5701...) = floor(3.1402...) = 3.
MATHEMATICA
r = N[Root[#^5 - #^4 - #^2 - 1 &, 1], 64]; Array[ Floor[r #] &, 70] (* Robert G. Wilson v, Dec 10 2017 *)
PROG
(PARI) a(n) = floor(n*solve(x=1, 2, x^5 - x^4 - x^2 - 1))
CROSSREFS
KEYWORD
nonn
AUTHOR
Iain Fox, Dec 08 2017
STATUS
approved