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!)
A104897 Difference between (n+prime(n)) and next prime. 0
2, 2, 3, 2, 1, 4, 5, 2, 5, 2, 1, 4, 5, 2, 5, 2, 3, 4, 3, 6, 3, 2, 1, 14, 5, 4, 1, 2, 1, 6, 5, 4, 3, 6, 7, 4, 3, 10, 5, 10, 3, 4, 5, 2, 9, 6, 5, 6, 1, 2, 9, 2, 13, 2, 1, 12, 5, 2, 1, 6, 3, 4, 3, 4, 1, 6, 3, 4, 3, 2, 7, 2, 3, 2, 3, 2, 1, 4, 7, 2, 3, 6, 7, 4, 17 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

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

FORMULA

a(n)=A104860(n)-A014688(n).

PROG

(PARI) a(n) = nextprime(n + prime(n) + 1) - (n + prime(n)); \\ Michel Marcus, Oct 09 2013

CROSSREFS

Cf. A014688, A104860.

Sequence in context: A092565 A021452 A093420 * A185694 A305294 A097510

Adjacent sequences:  A104894 A104895 A104896 * A104898 A104899 A104900

KEYWORD

nonn

AUTHOR

Zak Seidov, Apr 25 2005

EXTENSIONS

More terms from Michel Marcus, Oct 09 2013

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 20 03:28 EDT 2020. Contains 337264 sequences. (Running on oeis4.)