login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A078096 Least m such that P + m is a prime, where P is the n-th perfect number. 0
1, 1, 3, 19, 1, 7, 1, 105, 37, 163, 73, 43, 45, 649, 3753, 5323, 423, 3123 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

Some of the larger entries may only correspond to probable primes.

LINKS

Table of n, a(n) for n=1..18.

EXAMPLE

a(3)=3 because 496 + 3 is a prime.

MATHEMATICA

e (* from A000043 *) = {2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, ...}; NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; Do[p = 2^(e[[n]] - 1)*(2^e[[n]] - 1); Print[NextPrim[p] - p], {n, 1, 20}]

CROSSREFS

Cf. A061644, A000396, A000043.

Sequence in context: A227882 A189799 A300946 * A139429 A293699 A258200

Adjacent sequences:  A078093 A078094 A078095 * A078097 A078098 A078099

KEYWORD

hard,more,nonn

AUTHOR

Jason Earls, Dec 01 2002

EXTENSIONS

Edited and extended by Robert G. Wilson v, Dec 03 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 19 12:57 EDT 2019. Contains 327198 sequences. (Running on oeis4.)