OFFSET
1,1
COMMENTS
Row 4 of A224524
LINKS
Robert Israel, Table of n, a(n) for n = 1..4000
FORMULA
a(n) = 8*n^3 + 36*n^2 + 60*n + 4 + 24*A024917(n) + 12*A002541(n) + 12*Sum_{m=2..n} floor(n/m)^2. - Robert Israel, Dec 15 2019
EXAMPLE
Some solutions for n=3:
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 2 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0
2 0 1 0 2 0 0 1 0 0 0 0 3 3 0 0 0 0 0 0
0 0 0 0 2 0 0 1 0 0 0 0 2 2 0 0 1 0 1 1
MAPLE
F4 := k -> 8*k^3 + 36*k^2 + 24*add(m*floor(k/m), m = 2 .. k) + 12*add(floor(k/m), m = 2 .. k) + 12*add(floor(k/m)^2, m = 2 .. k) + 60*k + 4:
map(F4, [$1..100]); # Robert Israel, Dec 15 2019
MATHEMATICA
Table[8*n^3+36*n^2+60*n+4+24*Sum[k*Floor[n/k], {k, 2, n}]+12*Sum[Floor[(n-k)/k], {k, n-1}]+12*Sum[Floor[(n/k)]^2, {k, 2, n}], {n, 1, 100}] (* Metin Sariyar, Dec 15 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Apr 09 2013
EXTENSIONS
More terms from Metin Sariyar, Dec 15 2019
STATUS
approved