OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = floor(n*r+h), where r=sqrt(2), h=-1/3.
MATHEMATICA
r=2^(1/2); h=-1/3; Table[ Floor[n*r+h], {n, 1, 120}]
PROG
(PARI) vector(120, n, floor(n*sqrt(2) - 1/3)) \\ G. C. Greubel, Aug 18 2018
(Magma) [Floor(n*Sqrt(2) -1/3): n in [1..120]]; // G. C. Greubel, Aug 18 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 18 2011
STATUS
approved