OFFSET
1,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
EXAMPLE
k that satisfies sigma(k) = 12 is 6 or 11. d(6) = 4 and d(11) = 2. So a(12) = 4.
MATHEMATICA
a[n_] := Module[{dmax = 0}, Do[If[DivisorSigma[1, k] == n && (d = DivisorSigma[0, k]) > dmax, dmax = d], {k, 1, n}]; dmax]; Array[a, 100] (* Amiram Eldar, Apr 28 2021 *)
PROG
(PARI) a(n) = my(m=0); for(k=1, n, if(sigma(k)==n, m=max(m, numdiv(k)))); m;
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Feb 22 2021
STATUS
approved