0,1

Charles R Greathouse IV, Table of n, a(n) for n = 0..10000

a(n) = prime(pi(n)+2) - n.

with(numtheory); A105161:=n->ithprime(pi(n) + 2); seq(A105161(n), n=0..100); # Wesley Ivan Hurt, Feb 26 2014

Table[Prime[PrimePi[n] + 2], {n, 0, 100}] (* Wesley Ivan Hurt, Feb 26 2014 *)

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

(PARI) a(n)=nextprime(nextprime(n+1)+1)-n \\ Charles R Greathouse IV, Oct 09 2013

Cf. A101300.

Sequence in context: A093407 A147658 A221529 * A275769 A094365 A272886

Adjacent sequences: A105158 A105159 A105160 * A105162 A105163 A105164

nonn,easy

Zak Seidov, Apr 29 2005

approved