OFFSET
1,2
COMMENTS
Conjecture: a(n) is less than or equal to n for all n.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
FORMULA
EXAMPLE
sigma(4) = 7 and the least natural number k such that 7 k + 1 is prime is k = 4; so a(4) = 4.
MATHEMATICA
f[n_] := Module[{i}, i = 0; While[ ! PrimeQ[i*DivisorSigma[1, n] + 1], i++ ]; i]; Table[f[i], {i, 1, 150}]
PROG
(PARI) A072341(n) = { my(k=1, s=sigma(n)); while(!isprime(1+(k*s)), k++); k; }; \\ Antti Karttunen, Nov 07 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Jul 16 2002
STATUS
approved