OFFSET
1,9
COMMENTS
Also, a(n) = (sum (floor (j^2/p(n))), j = 1:p(n)-1) - floor ((p(n)-2)(p(n)-1)/3) for n >= 3.
LINKS
C. H. Gribble, Table of n, a(n) for n=1,..., 348513 (i.e. for primes < 5x10^6).
CROSSREFS
KEYWORD
nonn
AUTHOR
Christopher Hunt Gribble, Oct 01 2009
EXTENSIONS
a(1:2) added and cross-reference section modified by Christopher Hunt Gribble, Oct 07 2009
Comment corrected by Christopher Hunt Gribble, Oct 17 2009
Comment corrected by Christopher Hunt Gribble, Oct 29 2009
STATUS
approved