OFFSET
1,2
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..20000
Eric Weisstein's World of Mathematics, Beatty Sequence.
EXAMPLE
Tribonacci constant: t = 1.839286755214161132551852564653286600...
1 + 1/t = 1.54368901269207636157085597180174798652520...
MATHEMATICA
Floor[Range[100]*(1 + 1/Root[#^3-#^2-#-1 &, 1])] (* Paolo Xausa, Jul 09 2024 *)
PROG
(PARI) {a(n)=local(t=(1+(19+3*sqrt(33))^(1/3)+(19-3*sqrt(33))^(1/3))/3); floor(n*(1+1/t))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jun 01 2008
STATUS
approved