OFFSET
1,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1 because 1 mod 2 = 1 where 2 = smallest prime >= 1.
MAPLE
a:= n-> add(n mod ithprime(i), i=1..numtheory[pi](nextprime(n-1))):
seq(a(n), n=1..60); # Alois P. Heinz, Nov 25 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Nov 25 2010
EXTENSIONS
More terms from Alois P. Heinz, Nov 25 2010
STATUS
approved