OFFSET
2,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 2..10000
MAPLE
b:= proc(n, k) option remember; `if`(n=0, 1, add(add(min(d, k)
*d, d=numtheory[divisors](j))*b(n-j, k), j=1..n)/n)
end:
a:= n-> b(n, 2)-b(n, 1):
seq(a(n), n=2..50); # Alois P. Heinz, Oct 02 2018
MATHEMATICA
b[n_, k_] := b[n, k] = If[n == 0, 1, Sum[Sum[Min[d, k] d, {d, Divisors[j]}] b[n - j, k], {j, 1, n}]/n];
a[n_] := b[n, 2] - b[n, 1];
a /@ Range[2, 50] (* Jean-François Alcover, Oct 28 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Christian G. Bower, Jan 02 2004
STATUS
approved