OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Beatty Sequence
FORMULA
a(n) = floor(n*sqrt(Pi*phi)/(sqrt(Pi*phi)-1)), where phi is the golden ratio.
MATHEMATICA
Table[Floor[n*Sqrt[Pi*GoldenRatio]/(Sqrt[Pi*GoldenRatio] - 1)], {n, 1, 100}] (* G. C. Greubel, Jan 09 2017 *)
PROG
(PARI) phi = (sqrt(5)+1)/2; vector(100, n, floor(n*sqrt(Pi*phi) / (sqrt(Pi*phi)-1)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Dec 30 2014
STATUS
approved