OFFSET
1,5
COMMENTS
prime(n) itself is always the largest solution, but often composite solutions also occur.
If a(n)=1, then the single solution is prime(n).
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
n=96, p(96)=503, 503=sigma(x)-1 has 10 solutions together with 503: {204, 220, 224, 246, 284, 286, 334, 415, 451, 503} so a(96)=10.
PROG
(PARI) { for (n=1, 1000, a=1; for (x=1, prime(n) - 1, if (prime(n) == (sigma(x) - 1), a++)); write("b066075.txt", n, " ", a) ) } \\ Harry J. Smith, Nov 10 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 03 2001
STATUS
approved