OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = [1/r]+[2/r]+...+[n/r], where r=sqrt(2) and []=floor.
MATHEMATICA
Accumulate[Floor[Range[100]/(Sqrt[2])]] (* G. C. Greubel, Apr 10 2018 *)
PROG
(PARI) for(n=1, 100, print1(sum(k=1, n, floor(k/sqrt(2))), ", ")) \\ G. C. Greubel, Apr 10 2018
(Magma) [(&+[Floor(k/Sqrt(2)):k in [1..n]]): n in [1..100]]; // G. C. Greubel, Apr 10 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Dec 26 2010
STATUS
approved