OFFSET
1,1
COMMENTS
Or: primes p such that p = (prevprime(p) + 2 nextprime(p))/3, Or, p=prime(k) such that prime(k)-prime(k-1) = 2(prime(k+1)-prime(k)). See A194581 for primes which are at 1/3 of the distance between their neighbors.
EXAMPLE
11 is in the sequence because 11 = (7 + 2*13) / 3.
MATHEMATICA
Select[Prime@ Range@ 480, # == (NextPrime[#, -1] + 2 NextPrime@ #)/3 &] (* Michael De Vlieger, Jan 12 2016 *)
PROG
(PARI) a(n, show=0, o=2, g=0)={forprime(p=o+1, , g==2*(g=-o+o=p)||next; show&&print1(p-g", "); n--||return(p-g))} \\ 2nd & 3rd optional args allow printing the whole list and using another starting value.
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Jan 12 2016
STATUS
approved
