OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = n^2*Pi^2/6 + O(n*log n) as n -> infinity. - Robert Israel, Aug 05 2016
MAPLE
f:= n -> add(floor(n/k*floor(n/k)), k=1..n):
map(f, [$1..1000]); # Robert Israel, Aug 05 2016
MATHEMATICA
Table[Sum[Floor[(n / k) Floor[n / k]], {k, 1, n}], {n, 1, 50}] (* Vincenzo Librandi, Jul 28 2019 *)
PROG
(PARI) a(n) = sum(k=1, n, floor((n/k)*floor(n/k))) \\ Michel Marcus, Mar 23 2013
(Magma) [&+[(n div k)*(n div k): k in [1..n]]: n in [1..60]]; // Vincenzo Librandi, Jul 28 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved