A303385 Total area of all rectangles with dimensions s and t such that s | t, n = s + t and s < t.
0, 0, 2, 3, 4, 13, 6, 19, 26, 25, 10, 90, 12, 37, 100, 91, 16, 166, 18, 194, 172, 61, 22, 446, 124, 73, 260, 322, 28, 635, 30, 395, 364, 97, 380, 1041, 36, 109, 484, 990, 40, 1091, 42, 650, 1144, 133, 46, 1966, 342, 770, 772, 850, 52, 1651, 788, 1686, 940
Offset: 1
Crossrefs
Cf. A303384.
Programs
-
Magma
[0,0] cat [&+[k*(n-k)*(((n-k) div k)-((n-k-1) div k)): k in [1..(n-1) div 2]]: n in [3..80]]; // Vincenzo Librandi, Apr 23 2018
-
Mathematica
Table[Sum[i (n - i) (Floor[(n - i)/i] - Floor[(n - i - 1)/i]), {i, Floor[(n - 1)/2]}], {n, 80}]
Formula
a(n) = Sum_{i=1..floor((n-1)/2)} i * (n-i) * (floor((n-i)/i) - floor((n-i-1)/i)).