OFFSET
1,2
COMMENTS
Sequences of the form (floor(n*r + h)) are sometimes called nonhomogeneous Beatty sequences when h is not zero.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = floor(n*r + h), where r=sqrt(2), h=1/3.
MATHEMATICA
PROG
(Magma) [Floor(n*Sqrt(2)+1/3): n in [1..80]]; // Vincenzo Librandi, Jul 07 2011
(PARI) a(n)=floor(n*sqrt(2)+1/3) \\ Charles R Greathouse IV, Jul 07 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 18 2011
STATUS
approved