OFFSET
1,4
EXAMPLE
a(4) = prime(11 - 7) mod (11 - 7) = 7 mod 4 = 3.
MATHEMATICA
a[n_]:=Mod[Prime[Prime[n+1]-Prime[n]], Prime[n+1]-Prime[n]]; Array[a, 99] (* Stefano Spezia, Jun 29 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zachary Marino, Jun 28 2024
STATUS
approved