OFFSET
1,1
COMMENTS
The "reciprocity law" that Sum_{k=0..m} [(n*k+x)/m] = Sum_{k=0..n} [(m*k+x)/n] where x is a real number and m and n are positive integers, is proved in Section 3.5 of Concrete Mathematics (see References). See A259572 for a guide to related sequences.
REFERENCES
R. L. Graham, D. E. Knuth, and O. Patashnik, Concrete Mathematics, Addison-Wesley, 1989, pages 90-94.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..499
FORMULA
a(n) = Sum_{m=1..n} Sum_{k=0..m-1} floor((n*k + x)/m), where x = 3.
MATHEMATICA
x = 3; v[n_] := Sum[Sum[Floor[(n*k + x)/m], {k, 0, m - 1}], {m, 1, n}];
Table[v[n], {n, 1, 120}]
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Clark Kimberling, Jul 15 2015
STATUS
approved