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!)
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
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
Sequence in context: A092565 A021452 A093420 * A185694 A305294 A097510
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 05:35 EDT 2024. Contains 371697 sequences. (Running on oeis4.)