OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..5000
EXAMPLE
a(4) = floor(4/2)^2 + floor(4/3)^2 + floor(4/4)^2 = 6.
MAPLE
f:= proc(n) local m; add(floor(n/m)^2, m=2..n) end proc:
map(f, [$1..100]);
MATHEMATICA
Table[Sum[IntegerPart[(n/m)]^2, {m, 2, n}], {n, 1, 100}] (* Metin Sariyar, Dec 15 2019 *)
PROG
(Magma) [0] cat [&+[Floor(n/m)^2:m in [2..n]]:n in [2..60]]; // Marius A. Burtea, Dec 15 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Dec 15 2019
STATUS
approved