OFFSET
1,1
LINKS
Robert Price, Table of n, a(n) for n = 1..753
EXAMPLE
263 is a member because 263 = (257 + 263 + 269)/3
= (179 + 181 + 191 + 193 + 197 + 199 + 211 + 223 + 227 + 229 + 233 + 239 + 241 + 251 + 257 + 263 + 269 + 271 + 277 + 281 + 283 + 293 + 307 + 311 + 313 + 317 + 331 + 337 + 347 + 349 + 353)/31.
MATHEMATICA
f[n_] := Block[{c = 0, k = 1, p = Prime[n], s = Plus @@ Table[ Prime[i], {i, n - 1, n + 1}]}, While[k != n - 1, If[s == (2k + 1)p, c++ ]; k++; s = s + Prime[n - k] + Prime[n + k]]; c]; Prime[ Select[ Range[2, 250], f[ # ] == 2 &]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jun 28 2004
EXTENSIONS
a(45) from Robert Price, Nov 29 2023
STATUS
approved