OFFSET
2,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