|
|
A183139
|
|
a(n) = [1/r]+[2/r]+...+[n/r], where r=sqrt(2) and []=floor.
|
|
2
|
|
|
0, 1, 3, 5, 8, 12, 16, 21, 27, 34, 41, 49, 58, 67, 77, 88, 100, 112, 125, 139, 153, 168, 184, 200, 217, 235, 254, 273, 293, 314, 335, 357, 380, 404, 428, 453, 479, 505, 532, 560, 588, 617, 647, 678, 709, 741, 774, 807, 841, 876
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
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
|
|
|
STATUS
|
approved
|
|
|
|