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”).

A359294
a(n) = (least prime > binomial(2n, n)) - (greatest prime < binomial(2n, n)).
2
2, 4, 4, 6, 10, 20, 36, 4, 24, 10, 28, 6, 44, 32, 54, 98, 64, 20, 174, 76, 110, 84, 72, 66, 68, 102, 300, 74, 62, 104, 230, 176, 108, 126, 124, 96, 38, 70, 48, 228, 240, 38, 196, 210, 38, 260, 466, 72, 60, 36, 250, 156, 50, 46, 102, 84, 26, 240, 372, 90, 54, 360, 50, 276, 314, 408, 32, 168, 164
OFFSET
2,1
FORMULA
a(n) = A359292(n) - A359293(n-1).
EXAMPLE
5 < 6 < 7, so a(2) = 7 - 5 = 2;
19 < 20 < 23, so a(3) = 23 - 19 = 4;
67 < 70 < 71, so a(4) = 71 - 67 = 4;
251 < 252 < 257, so a(5) = 257 - 251 = 6.
MATHEMATICA
t = Table[Binomial[2 n, n], {n, 1, 70}];
u = NextPrime[t]; v = Rest[NextPrime[t, -1]];
Rest[u] - v
PROG
(PARI) a(n) = my(c=binomial(2*n, n)); nextprime(c+1) - precprime(c-1); \\ Michel Marcus, Dec 24 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Dec 24 2022
STATUS
approved