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