login
A375097
a(n) = prime(n+2) - (prime(n) + prime(n+1))/2.
2
3, 5, 4, 5, 4, 5, 8, 5, 7, 7, 4, 5, 8, 9, 5, 7, 7, 4, 7, 7, 8, 11, 8, 4, 5, 4, 5, 16, 11, 8, 5, 11, 7, 7, 9, 7, 8, 9, 5, 11, 7, 5, 4, 13, 18, 10, 4, 5, 8, 5, 11, 11, 9, 9, 5, 7, 7, 4, 11, 19, 11, 4, 5, 16, 13, 13, 7, 5, 8, 11, 10, 9, 7, 8, 11, 8, 10, 14, 7, 11
OFFSET
2,1
LINKS
MATHEMATICA
Array[#3 - (#1 + #2)/2 & @@ Prime[{#, # + 1, # + 2}] &, 80, 2] (* Michael De Vlieger, Jul 30 2024 *)
PROG
(PARI) a(n) = prime(n+2) - (prime(n) + prime(n+1))/2
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Hugo Pfoertner, Jul 30 2024
STATUS
approved