OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..188
MATHEMATICA
seq[max_] := Module[{s = Table[0, {n, 1, max}], i, v = {}, m = 0}, Do[If[(i = DivisorSigma[1, n] - n) <= max, s[[i]]++], {n, 2, (max - 1)^2}]; Do[If[s[[i]] > m && PrimeQ[s[[i]]], m = s[[i]]; AppendTo[v, i]], {i, 1, max}]; v]; seq[2000] (* Amiram Eldar, Sep 23 2022 *)
PROG
(PARI) f(n) = my(s=0); for(x=1, n^2, if(sigma(x)-x==n, s++)); s;
a=0; for(n=1, 10^5, x=f(n); if(isprime(x), b=x; if(b>a, a=b; print1(n, ", "))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Oct 01 2001
EXTENSIONS
Corrected and extended by Matthew Conroy, Oct 02 2001
a(11)-a(44) from Amiram Eldar, Oct 01 2019
STATUS
approved