OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
a(n) = 1+A319685(n).
MATHEMATICA
d[0] = d[1] = 0; d[n_] := d[n] = n * Plus @@ ((Last[#]/First[#]) & /@ FactorInteger[n]); a[n_] := CountDistinct[d /@ Divisors[n]]; Array[a, 100] (* Amiram Eldar, Apr 17 2024 *)
PROG
(PARI)
A003415(n) = {my(fac); if(n<1, 0, fac=factor(n); sum(i=1, matsize(fac)[1], n*fac[i, 2]/fac[i, 1]))}; \\ From A003415
A319686(n) = { my(m=Map(), s, k=0); fordiv(n, d, if(!mapisdefined(m, s=A003415(d)), mapput(m, s, s); k++)); (k); };
(PARI) a(n) = my(d = divisors(n)); for(i = 1, #d, d[i] = A003415(d[i])); #Set(d) \\ uses A003415 listed at Antti's programs. David A. Corneth, Oct 02 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 02 2018
STATUS
approved