login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A082911
a(n) = prime(n+pi(n)) - prime(n) = A000040(n+A000720(n)) - A000040(n).
1
0, 2, 6, 6, 8, 10, 14, 18, 18, 14, 22, 22, 26, 28, 26, 26, 30, 36, 36, 36, 36, 34, 48, 48, 42, 48, 48, 50, 58, 60, 54, 60, 56, 58, 50, 60, 70, 66, 66, 66, 72, 76, 78, 78, 80, 82, 82, 84, 84, 84, 84, 92, 106, 98, 96, 96, 98, 102, 106, 108, 118, 116, 112, 110, 118, 116, 112
OFFSET
1,2
LINKS
EXAMPLE
n=10: a(10) = prime(10+pi(10)) - prime(10) = prime(10+4)-29 = 43-29 = 14.
MATHEMATICA
Table[Prime[n+PrimePi[n]]-Prime[n], {n, 1, 128}]
CROSSREFS
Sequence in context: A318435 A157299 A230292 * A005869 A353624 A377998
KEYWORD
easy,nonn
AUTHOR
Labos Elemer, Apr 23 2003
EXTENSIONS
Offset changed by Georg Fischer, Oct 29 2023
STATUS
approved