OFFSET
1,3
COMMENTS
a(n) = A022457(n) for n > 1.
a(n) = A031215(n)-A100484(n) = A072473(n)-A000040(n); see A179740 for primes. - Reinhard Zumkeller, Jul 25 2010
Asymptotically, a(n) ~ log(4) n, with log(4) = 2 log 2 = 1.38629436111989... = A016627. - M. F. Hasler, Oct 19 2013
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[Prime[2n]-2Prime[n], {n, 100}] (* Harvey P. Dale, Aug 21 2016 *)
PROG
(PARI) { for (n = 1, 1000, a=prime(2*n) - prime(n)*2; write("b066066.txt", n, " ", a) ) } \\ Harry J. Smith, Nov 09 2009
(PARI) A066066(n)=prime(2*n)-2*prime(n) \\ M. F. Hasler, Oct 19 2013
CROSSREFS
KEYWORD
sign
AUTHOR
Reinhard Zumkeller, Dec 01 2001
STATUS
approved