OFFSET
1,2
FORMULA
a(n) = A031215(n) - A005843(n). - Michel Marcus, Feb 01 2019 [Corrected by Georg Fischer, Dec 13 2022]
EXAMPLE
a(1) = prime(2*1) - 1*2 = prime(2) - 2 = 3 - 2 = 1.
a(4) = prime(2*4) - 4*2 = prime(8) - 8 = 19 - 8 = 11.
MAPLE
p:= ithprime: a:= seq(p(2*n)-2*n, n=1..100); # D. S. McNeil, Mar 21 2009
PROG
(PARI) a(n) = prime(2*n) - 2*n; \\ Michel Marcus, Dec 13 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 31 2008
EXTENSIONS
a(32), a(40) corrected and extended by D. S. McNeil, Mar 21 2009
STATUS
approved