[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A066515
Numbers n such that prime(n+1) + prime(n-2) = 2*prime(n-1), where prime(m) is the m-th prime.
1
13, 20, 60, 93, 113, 116, 141, 212, 234, 254, 262, 269, 277, 286, 292, 295, 302, 323, 353, 359, 370, 390, 408, 418, 474, 501, 543, 599, 613, 625, 715, 719, 724, 743, 820, 934, 940, 995, 999, 1017, 1099, 1120, 1264, 1300, 1313, 1401, 1415, 1419, 1423
OFFSET
1,1
COMMENTS
Equivalently, n such that f(n) = f(n-2) - f(n-1) where f is the prime gap function given by f(m) = p(m+1) - p(m).
LINKS
MATHEMATICA
Select[ Range[ 3, 1440 ], Prime[ #+1 ]+Prime[ #-2 ]==2Prime[ #-1 ]& ]
PrimePi[#[[3]]]&/@Select[Partition[Prime[Range[1500]], 4, 1], First[#]+ Last[#]==2#[[2]]&] (* Harvey P. Dale, Apr 13 2012 *)
PROG
(PARI) { n=0; for (m=3, 10^10, if (prime(m+1) + prime(m-2) == 2*prime(m-1), write("b066515.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Feb 20 2010
(PARI) isok(n) = prime(n+1) + prime(n-2) == 2*prime(n-1); \\ Michel Marcus, Jan 04 2016
CROSSREFS
Sequence in context: A164462 A132946 A278470 * A166656 A346401 A230498
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Jan 04 2002
EXTENSIONS
Edited by Dean Hickerson, Jan 10 2002
STATUS
approved