OFFSET
1,2
COMMENTS
Does any term occur more than once?
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
A007504(6) = 2+3+5+7+11+13 = 41 so a(6) = (41 mod 2)+(41 mod 3)+(41 mod 5)+(41 mod 7)+(41 mod 11)+(41 mod 13) = 20.
MAPLE
P:= [seq(ithprime(i), i=1..100)]:
S:= ListTools:-PartialSums(P):
seq(add(S[n] mod P[k], k=1..n), n=1..100);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Apr 30 2021
STATUS
approved