login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A379207
a(n) = 2*prime(n+1) - (prime(n+1) - prime(n))^2.
1
5, 6, 10, 6, 22, 18, 34, 30, 22, 58, 38, 66, 82, 78, 70, 82, 118, 98, 126, 142, 122, 150, 142, 130, 186, 202, 198, 214, 210, 58, 246, 238, 274, 198, 298, 278, 290, 318, 310, 322, 358, 282, 382, 378, 394, 278, 302, 438, 454, 450, 442, 478, 402, 478, 490, 502, 538, 518, 546, 562
OFFSET
1,1
LINKS
Jacques Grah, Conditional Bounds for Prime Gaps with Applications, arXiv:2412.12311 [math.NT], 2024.
FORMULA
a(n) = 2*A000040(n+1) - A001223(n)^2.
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
Sequence in context: A273039 A019125 A019205 * A191472 A189056 A340325
KEYWORD
nonn,new
AUTHOR
Michel Marcus, Dec 18 2024
STATUS
approved