OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A084695(n, n).
a(n) = prime(primepi(n) + n) - n. - Richard R. Forberg, Mar 22 2021
EXAMPLE
MATHEMATICA
Table[Prime[PrimePi[n] +n] -n, {n, 80}] (* G. C. Greubel, May 12 2023 *)
PROG
(PARI) a(n) = prime(primepi(n) + n) - n; \\ Michel Marcus, Mar 28 2021
(Magma) [NthPrime(#PrimesUpTo(n) +n) -n: n in [1..80]]; // G. C. Greubel, May 12 2023
(SageMath)
def A084747(n): return nth_prime(prime_pi(n) + n) - n
[A084747(n) for n in range(1, 81)] # G. C. Greubel, May 12 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy and Jason Earls, Jul 12 2003
STATUS
approved