OFFSET
1,2
COMMENTS
Sequence is interesting because of its graph. a(n)-a(n-1) < 0 at some points such as n=4 and n=8, although usually a(n)-a(n-1) > 0.
EXAMPLE
a(1) = 1 because prime(prime(1)) mod prime(1) = 3 mod 2 = 1.
MATHEMATICA
Table[Mod[Sum[Prime@ Prime@ k, {k, n}], Sum[Prime@ k, {k, n}]], {n, 55}] (* Michael De Vlieger, Oct 21 2015 *)
PROG
(PARI) vector(100, n, sum(k=1, n, prime(prime(k))) % sum(k=1, n, prime(k)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Oct 21 2015
STATUS
approved