OFFSET
1,1
COMMENTS
LINKS
Fabien Sibenaler, Table of n, a(n) for n = 1..10000
EXAMPLE
343831 = prime(24490) is a term because:
prime(24491) = 343891, prime(24382) = 343771;
2*prime(24490) - prime(24491) = prime(24382).
MATHEMATICA
With[{m = 8}, Prime@ Select[Range[m + 1, 2*10^5], If[MemberQ[{1, 2, 4}, #], 0, 2 Prime[#] - Prime[# + 1]] == Prime[# - m] &]] (* Michael De Vlieger, Jul 16 2017 *)
PROG
(PARI) lista(nn) = my(v=primes(9)); forprime(p=29, nn, if(2*v[9]-p==v[1], print1(v[9], ", ")); v=concat(v[2..9], p)); \\ Jinyuan Wang, Jun 18 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Fabien Sibenaler, Mar 12 2013
STATUS
approved