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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A060266 Difference between 2n and the following prime. 8
1, 1, 1, 3, 1, 1, 3, 1, 1, 3, 1, 5, 3, 1, 1, 5, 3, 1, 3, 1, 1, 3, 1, 5, 3, 1, 5, 3, 1, 1, 5, 3, 1, 3, 1, 1, 5, 3, 1, 3, 1, 5, 3, 1, 7, 5, 3, 1, 3, 1, 1, 3, 1, 1, 3, 1, 13, 11, 9, 7, 5, 3, 1, 3, 1, 5, 3, 1, 1, 9, 7, 5, 3, 1, 1, 5, 3, 1, 5, 3, 1, 3, 1, 5, 3, 1, 5, 3, 1, 1, 9, 7, 5, 3, 1, 1, 3, 1, 1, 11, 9, 7, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

LINKS

Michael De Vlieger, Table of n, a(n) for n = 1..10000

MAPLE

with(numtheory): [seq(nextprime(2*i)-2*i, i=1..256)];

MATHEMATICA

d2n[n_]:=Module[{c=2n}, NextPrime[c]-c]; Array[d2n, 120] (* Harvey P. Dale, May 14 2011 *)

Table[NextPrime@ # - # &[2 n], {n, 120}] (* Michael De Vlieger, Feb 18 2017 *)

PROG

(ARI) a(n) = nextprime(2*n+1) - 2*n; \\ Michel Marcus, Feb 19 2017

CROSSREFS

Cf. A020482, A049653, A060267, A060268, A060264.

Sequence in context: A238737 A049653 A281680 * A073310 A174414 A046929

Adjacent sequences:  A060263 A060264 A060265 * A060267 A060268 A060269

KEYWORD

nonn

AUTHOR

Labos Elemer, Mar 23 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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 29 14:43 EDT 2021. Contains 346346 sequences. (Running on oeis4.)