A376678 Position of first zero in the n-th differences of the primes, or 0 if it does not appear.
0, 0, 2, 7, 69, 13, 47, 58, 9, 43, 3553, 100, 7019, 14082, 68097, 14526, 149677, 2697, 481054, 979719, 631894, 29811, 25340978, 50574254, 7510843, 210829337, 67248861, 224076286, 910615647, 931510269, 452499644, 2880203722, 396680865, 57954439970, 77572822440, 35394938648
Offset: 0
Keywords
Examples
The third differences of the primes begin: -1, 2, -4, 4, -4, 4, 0, -6, 8, ... so a(3) = 7.
Links
- Lucas A. Brown, Python program.
Crossrefs
Programs
-
Mathematica
nn=100000; u=Table[Differences[Select[Range[nn],PrimeQ],k],{k,2,16}]; mnrm[s_]:=If[Min@@s==1,mnrm[DeleteCases[s-1,0]]+1,0]; m=Table[Position[u[[k]],0][[1,1]],{k,mnrm[Union[First/@Position[u,0]]]}]
Formula
Extensions
a(17)-a(32) from Pontus von Brömssen, Oct 17 2024
a(33)-a(35) from Lucas A. Brown, Nov 03 2024
Comments