login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A014785
a(n) = Sum_{0<=k<=n} ceiling(k^2/n).
1
1, 3, 6, 9, 13, 18, 24, 30, 35, 43, 52, 61, 69, 80, 92, 102, 113, 125, 140, 155, 169, 184, 202, 220, 231, 251, 270, 291, 309, 332, 354, 376, 397, 419, 446, 469, 493, 520, 550, 578, 601, 631, 660, 693, 721, 754, 788
OFFSET
1,2
REFERENCES
M. Eichler and D. Zagier, The Theory of Jacobi Forms, Birkhauser, 1985, p. 103.
LINKS
MAPLE
f := n->sum( ceil(k^2/n), k=0..n);
MATHEMATICA
Table[Sum[Ceiling[k^2/n], {k, 0, n}], {n, 50}] (* Harvey P. Dale, Oct 24 2013 *)
PROG
(Magma) [&+[Ceiling(k^2/n):k in [0..n]]:n in [1..50]]; // Marius A. Burtea, Dec 31 2019
CROSSREFS
Cf. A014817 (with floor), A177041 (with round).
Sequence in context: A143975 A005488 A048202 * A132352 A033436 A059293
KEYWORD
nonn
AUTHOR
STATUS
approved