A213014 Number of zeros following the initial 1 in n-th absolute difference of primes.
0, 1, 0, 0, 0, 0, 0, 0, 6, 5, 4, 3, 2, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 0, 3, 2, 1, 0, 0, 1, 0, 3, 2, 1, 0, 0, 6, 5, 4, 3, 2, 1, 0, 0, 1, 0, 0, 1, 0, 2, 1, 0, 1, 0, 0, 0, 0, 6, 5, 4, 3, 2, 1, 0, 2, 1, 0, 0, 2, 1, 0, 0, 1, 0, 5, 4, 3, 2, 1, 0, 1, 0, 0, 0, 0, 0, 2, 1, 0, 0, 2, 1, 0, 0, 4, 3, 2, 1, 0, 0, 0, 0, 3, 2, 1, 0, 0
Offset: 1
Keywords
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
L:= [seq(ithprime(i),i=1..120)]: for i from 1 to 100 do L:= map(abs,L[2..-1]-L[1..-2]); for j from 2 do if L[j] <> 0 then R[i]:= j-2; break fi; od; od: seq(R[i],i=1..100); # Robert Israel, Dec 13 2023
-
PARI
my( p=primes(150), D(v)=vecextract(v,"^1")-vecextract(v,"^-1")); while(p=abs(D(p)),for(i=2,#p,p[i] & !print1(i-2",") & next(2));break)
Comments