OFFSET
1,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Jacques Grah, Conditional Bounds for Prime Gaps with Applications, arXiv:2412.12311 [math.NT], 2024.
MATHEMATICA
Array[2*Prime[# + 1] - (Prime[# + 1] - Prime[#])^2 &, 120] (* Michael De Vlieger, Dec 18 2024 *)
PROG
(PARI) a(n) = 2*prime(n+1) - (prime(n+1) - prime(n))^2;
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Michel Marcus, Dec 18 2024
STATUS
approved