OFFSET
1,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..650
MAPLE
b:= proc(n, s) option remember; `if`(n=0,
numtheory[tau](s), b(n-1, s)+b(n-1, s+n))
end:
a:= n-> b(n, 0):
seq(a(n), n=1..30);
MATHEMATICA
b[n_, s_] := b[n, s] = If[n == 0,
If[s == 0, 0, DivisorSigma[0, s]], b[n-1, s] + b[n-1, s+n]];
a[n_] := b[n, 0];
Table[a[n], {n, 1, 30}] (* Jean-François Alcover, Mar 24 2022, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jul 28 2019
STATUS
approved