cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A330303 Least start of a run of exactly n consecutive odd numbers that are all de Polignac numbers (A006285).

This page as a plain text file.
%I A330303 #24 Dec 13 2019 19:45:35
%S A330303 1,905,18895,56287,3296885,53892169,496722329,1415354159,110690012639
%N A330303 Least start of a run of exactly n consecutive odd numbers that are all de Polignac numbers (A006285).
%e A330303 a(2) = 905 since both 905 and 905 + 2 = 907 are de Polignac numbers.
%e A330303 a(3) = 18895 since 18895, 18895 + 2 = 18897 and 18895 + 4 = 18899 are all de Polignac numbers.
%t A330303 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
%Y A330303 Cf. A006285, A330284.
%K A330303 nonn,more
%O A330303 1,2
%A A330303 _Amiram Eldar_, Dec 13 2019