OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..3321
MAPLE
b:= proc(n, l) option remember; `if`(n=1,
mul(ithprime(mul(l[j], j=1..i-1))^(l[i]-1), i=1..nops(l)),
add(b(n/d, [l[], d]), d=numtheory[divisors](n) minus{1}))
end:
a:= n-> b(n+1, []):
seq(a(n), n=0..33);
MATHEMATICA
b[n_, l_] := b[n, l] = If[n == 1, Product[Prime[Product[l[[j]], {j, 1, i - 1}]]^(l[[i]] - 1), {i, 1, Length[l]}], Sum[b[n/d, Append[l, d]], {d, Divisors[n]~Complement~{1}}]];
a[n_] := b[n + 1, {}];
Table[a[n], {n, 0, 33}] (* Jean-François Alcover, Nov 21 2023, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 21 2023
STATUS
approved