OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = floor[(n-h)*s +h], where s=2+sqrt(2) and h=-1/4.
MATHEMATICA
PROG
(PARI) for(n=1, 100, print1(floor(n*sqrt(2)/(sqrt(2)-1) + sqrt(2)/(4*sqrt(2) - 4) - 1/4), ", ")) \\ G. C. Greubel, Apr 20 2018
(Magma) [Floor(n*Sqrt(2)/(Sqrt(2) - 1) + Sqrt(2)/(4*Sqrt(2) - 4) - 1/4): n in [1..100]]; // G. C. Greubel, Apr 20 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 18 2011
STATUS
approved