OFFSET
1,2
EXAMPLE
a(2) = 905 since both 905 and 905 + 2 = 907 are de Polignac numbers.
a(3) = 18895 since 18895, 18895 + 2 = 18897 and 18895 + 4 = 18899 are all de Polignac numbers.
MATHEMATICA
dePolQ[n_] := AllTrue[n - 2^Range[0, Floor[Log[2, n]]], !PrimeQ[#] &]; max = 5; seq = Table[0, {max}]; count = 0; k = 3; While[count < max, If[dePolQ[k], kk = k + 2; While[dePolQ[kk], kk += 2]; n = (kk - k)/2; If[n <= max && seq[[n]] == 0, count++; seq[[n]] = k]; k = kk + 2, k += 2]]; seq
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Amiram Eldar, Dec 13 2019
STATUS
approved