OFFSET
1
COMMENTS
See A187950.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = [(n+4)*r] - [n*r] - [4*r], where r=sqrt(2).
MATHEMATICA
PROG
(PARI) for(n=1, 30, print1(floor((n+4)*sqrt(2)) - floor(n*sqrt(2)) - floor(4*sqrt(2)), ", ")) \\ G. C. Greubel, Jan 31 2018
(Magma) [Floor((n+4)*Sqrt(2)) - Floor(n*Sqrt(2)) - Floor(4*Sqrt(2)): n in [1..30]]; // G. C. Greubel, Jan 31 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 17 2011
STATUS
approved