OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
a(1) = 151 because prevprime(151) + nextprime(151) = 149 + 157 = 306 = 17 * 8.
a(2) = 191 because prevprime(191) + nextprime(191) = 181 + 193 = 374 = 17 * 22.
a(3) = 199 because prevprime(199) + nextprime(199) = 197 + 211 = 408 = 17 * 24.
a(4) = 421 because prevprime(421) + nextprime(421) = 419 + 431 = 850 = 17 * 50.
MATHEMATICA
Prime@ Select[Range[2, 731], Mod[Prime[ # - 1] + Prime[ # + 1], 17] == 0 &] (* Robert G. Wilson v *)
Select[Partition[Prime[Range[800]], 3, 1], Divisible[#[[1]]+#[[3]], 17]&][[All, 2]] (* Harvey P. Dale, Oct 06 2020 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Jan 01 2006
EXTENSIONS
More terms from Robert G. Wilson v, Jan 05 2006
STATUS
approved