login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A072341 a(n) = the least natural number k such that k*sigma(n) + 1 is prime. 1
1, 2, 1, 4, 1, 1, 2, 2, 4, 1, 1, 1, 2, 3, 3, 10, 1, 2, 2, 1, 3, 1, 3, 1, 10, 1, 1, 2, 1, 1, 3, 2, 2, 2, 2, 6, 5, 1, 2, 2, 1, 1, 2, 4, 1, 1, 2, 3, 4, 4, 1, 2, 2, 2, 1, 2, 3, 2, 1, 2, 5, 1, 3, 4, 4, 3, 2, 1, 1, 3, 1, 6, 2, 2, 3, 2, 1, 2, 3, 2, 6, 1, 4, 2, 1, 3, 2, 1, 2, 4, 1, 2, 2, 3, 2, 3, 2, 12, 1, 6, 1, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Conjecture: a(n) is less than or equal to n for all n.
LINKS
FORMULA
a(n) = A034693(A000203(n)). - Antti Karttunen, Nov 07 2017
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
Sequence in context: A070668 A318407 A325807 * A011130 A291854 A072918
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Jul 16 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 18:16 EDT 2024. Contains 371916 sequences. (Running on oeis4.)