OFFSET
1,1
COMMENTS
The indices of primes that are equidistant from the two primes surrounding them. - Harvey P. Dale, May 16 2013
Indices of balanced primes (A006562). - Zak Seidov, Mar 03 2019
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[2, 1000], Prime[ # ] == (Prime[ # + 1] + Prime[ # - 1])/2 &] (* Ray Chandler, Jan 09 2007 *)
PrimePi/@Transpose[Select[Partition[Prime[Range[900]], 3, 1], Length[ Union[ Differences[ #]]]==1&]][[2]] (* Harvey P. Dale, May 16 2013 *)
PROG
(PARI) isok(k) = { k > 1 && prime(k+1) + prime(k-1) == 2*prime(k) } \\ Harry J. Smith, Apr 03 2010
(Magma) [n: n in [2..1000] | 2*NthPrime(n) eq (NthPrime(n-1) + NthPrime(n+1))]; // Vincenzo Librandi, Apr 09 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jan 21 2002
EXTENSIONS
Corrected by Ray Chandler, Jan 09 2007
STATUS
approved