The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A059787 Distance between 2*(n-th prime) and next prime. 10
 1, 1, 1, 3, 1, 3, 3, 3, 1, 1, 5, 5, 1, 3, 3, 1, 9, 5, 3, 7, 3, 5, 1, 1, 3, 9, 5, 9, 5, 1, 3, 1, 3, 3, 9, 5, 3, 5, 3, 1, 1, 5, 1, 3, 3, 3, 9, 3, 3, 3, 1, 1, 5, 1, 7, 15, 3, 5, 3, 1, 3, 1, 3, 9, 5, 7, 11, 3, 7, 3, 3, 1, 5, 5, 3, 3, 9, 3, 7, 3, 1, 11, 1, 11, 3, 1, 9, 5, 7, 3, 3, 9, 3, 1, 11, 3, 1, 7, 3, 5, 3, 3 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,4 COMMENTS If a(n)=1 then prime(n) is a Sophie Germain prime. LINKS Robert Israel, Table of n, a(n) for n = 1..10000 MAPLE with(numtheory): [seq(nextprime(2*ithprime(k))-2*ithprime(k), k=1..256)]; MATHEMATICA Table[n2=2Prime[n]; NextPrime[n2]-n2, {n, 110}] (* Harvey P. Dale, Jun 07 2012 *) PROG (PARI) a(n) = my(pp=2*prime(n)); nextprime(pp) - pp; \\ Michel Marcus, Mar 22 2020 CROSSREFS Cf. A005385, A005384. Sequence in context: A119979 A143149 A268498 * A081325 A132680 A105595 Adjacent sequences:  A059784 A059785 A059786 * A059788 A059789 A059790 KEYWORD nonn AUTHOR Labos Elemer, Feb 22 2001 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.

Last modified September 18 23:17 EDT 2020. Contains 337175 sequences. (Running on oeis4.)