OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
fQ[n_] := Block[{p = NextPrime[n, -1], q = n, r = NextPrime[n]}, IntegerQ[(q - p)/(r - q)]]; Select[ Prime@ Range[2, 50], fQ]
Select[Partition[Prime[Range[150]], 3, 1], IntegerQ[(#[[2]]-#[[1]])/(#[[3]]- #[[2]])]&][[All, 2]] (* Harvey P. Dale, Jul 26 2018 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Jan 10 2011
STATUS
approved