cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A104897 Difference between (n+prime(n)) and next prime.

Original entry on oeis.org

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
Offset: 1

Views

Author

Zak Seidov, Apr 25 2005

Keywords

Crossrefs

Programs

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

Formula

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

Extensions

More terms from Michel Marcus, Oct 09 2013
Showing 1-1 of 1 results.