OFFSET
1,1
COMMENTS
If (prime(k+2) + prime(k-2))/prime(k) is an integer, then it can only be 2.
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[3, 1200], Prime[ # ] == (Prime[ # + 2] + Prime[ # - 2])/2 &] (* Ray Chandler, Jan 09 2007 *)
Flatten[Position[Partition[Prime[Range[1200]], 5, 1], _?(#[[1]]+#[[5]] == 2#[[3]]&), 1, Heads->False]]+2 (* Harvey P. Dale, Jan 01 2022 *)
PROG
(PARI) isok(k) = { k > 2 && prime(k+2) + prime(k-2) == 2*prime(k) } \\ Harry J. Smith, Apr 03 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jan 21 2002
EXTENSIONS
Corrected and extended by Ray Chandler, Jan 09 2007
STATUS
approved