|
|
A184969
|
|
a(n) = [Pi]+[2*Pi]+...+[n*Pi], where []=floor.
|
|
1
|
|
|
3, 9, 18, 30, 45, 63, 84, 109, 137, 168, 202, 239, 279, 322, 369, 419, 472, 528, 587, 649, 714, 783, 855, 930, 1008, 1089, 1173, 1260, 1351, 1445, 1542, 1642, 1745, 1851, 1960, 2073, 2189, 2308, 2430, 2555, 2683, 2814, 2949, 3087, 3228, 3372, 3519, 3669, 3822, 3979, 4139
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
a(n)/n^2 ~ Pi/2.
|
|
MAPLE
|
with(numtheory):Digits:=100:s:=0:for n from 1 to 100 do: s:=s+floor(n*Pi):printf(`%d, `, s):od:
|
|
MATHEMATICA
|
Table[Sum[Floor[k*Pi], {k, 1, n}], {n, 1, 50}] (* G. C. Greubel, Sep 24 2017 *)
Accumulate[Floor[Pi Range[60]]] (* Much more efficient than the above program. *) (* Harvey P. Dale, Aug 27 2023 *)
|
|
PROG
|
(PARI) for(n=1, 50, print1(sum(k=1, n, floor(k*Pi)), ", ")) \\ G. C. Greubel, Sep 24 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|