OFFSET
1,1
COMMENTS
LINKS
Remi Eismann, Table of n, a(n) for n = 1..10000
EXAMPLE
prime(5061) = 49223 has level (1,5): prime(5062) = 49253 = 2*prime(5061) - prime(5061-5) = 2*prime(5061) - prime(5056).
MATHEMATICA
With[{m = 5}, Prime@ Select[Range[m + 1, 3*10^4], If[MemberQ[{1, 2, 4}, #], 0, 2 Prime[#] - Prime[# + 1]] == Prime[# - m] &]] (* Michael De Vlieger, Jul 16 2017 *)
PROG
(PARI) lista(nn) = my(c=6, v=primes(6)); forprime(p=17, nn, if(2*v[c]-p==v[c=c%6+1], print1(precprime(p-1), ", ")); v[c]=p); \\ Jinyuan Wang, Jun 18 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémi Eismann, May 04 2006
EXTENSIONS
Edited by N. J. A. Sloane, May 14 2006
More terms from Rémi Eismann, May 21 2006
Definition and comment reworded following suggestions from the authors. - M. F. Hasler, Nov 30 2009
STATUS
approved