OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[Mod[Prime[p + 1] + Prime[p] - 1, Prime[p + 1] - Prime[p] + 1], {p, 100}] (* Alonso del Arte, Jan 18 2014 *)
Mod[Total[#]-1, #[[2]]-#[[1]]+1]&/@Partition[Prime[Range[100]], 2, 1] (* Harvey P. Dale, Mar 16 2023 *)
PROG
(PARI) a(n)=lift(Mod(prime(n+1)+prime(n)-1, prime(n+1)-prime(n)+1)) /* Ralf Stephan, Sep 03 2013 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Aug 31 2013
STATUS
approved