OFFSET
0,1
LINKS
Bill McEachen and Robert G. Wilson v, Table of n, a(n) for n = 0..180
FORMULA
a(n) = A253899(n) - 2n for n > 0.
EXAMPLE
a(4) = 89 since 89=97-8, and this is the first time this gap is seen after smaller gaps of 1,2,4,6 are satisfied.
MATHEMATICA
lst = {2}; p = 2; q = 3; gp = 2; While[ gp != 86, While[q - p != gp, p = q; q = NextPrime@ p]; AppendTo[lst, p]; Print@ p; gp += 2]; lst
PROG
(Python) from sympy import sieve
A256454 = [2]
for j in range(2, 90000):
print(A256454) # Karl-Heinz Hofmann, May 03 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Bill McEachen and Robert G. Wilson v, Mar 29 2015
STATUS
approved