OFFSET
1,4
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
Conjecture: Limit_{n->oo} (Sum_{k=1..n} a(k)) / (Sum_{k=1..n} log(2*k)) = 1. - Alain Rocchelli, Oct 24 2023
MAPLE
with(numtheory): [seq(nextprime(2*i)-2*i, i=1..256)];
MATHEMATICA
d2n[n_]:=Module[{c=2n}, NextPrime[c]-c]; Array[d2n, 120] (* Harvey P. Dale, May 14 2011 *)
Table[NextPrime@ # - # &[2 n], {n, 120}] (* Michael De Vlieger, Feb 18 2017 *)
PROG
(PARI) a(n) = nextprime(2*n+1) - 2*n; \\ Michel Marcus, Feb 19 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Mar 23 2001
STATUS
approved