OFFSET
1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = [n*r] - [2*r] - [(n-2)*r], where r=sqrt(2).
MAPLE
A188038:=n->floor(n*sqrt(2))-floor(2*sqrt(2))-floor(n*sqrt(2) - 2*sqrt(2)); seq(A188038(n), n=1..100); # Wesley Ivan Hurt, Dec 02 2013
MATHEMATICA
PROG
(PARI) for(n=1, 30, print1(floor(n*sqrt(2)) - floor(2*sqrt(2)) - floor((n-2)*sqrt(2)), ", ")) \\ G. C. Greubel, Jan 31 2018
(Magma) [Floor(n*Sqrt(2)) - Floor(2*Sqrt(2)) - Floor((n-2)*Sqrt(2)): n in [1..30]]; // G. C. Greubel, Jan 31 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 19 2011
STATUS
approved