login
A165951
a(n) = (Sum of the quadratic non-residues of prime(n) - Sum of the quadratic residues of prime(n)) / prime(n)
5
0, 0, 0, 1, 1, 0, 0, 1, 3, 0, 3, 0, 0, 1, 5, 0, 3, 0, 1, 7, 0, 5, 3, 0, 0, 0, 5, 3, 0, 0, 5, 5, 0, 3, 0, 7, 0, 1, 11, 0, 5, 0, 13, 0, 0, 9, 3, 7, 5, 0, 0, 15, 0, 7, 0, 13, 0, 11, 0, 0, 3, 0, 3, 19, 0, 0, 3, 0, 5, 0, 0, 19, 9, 0, 3, 17, 0, 0, 0, 0, 9, 0, 21, 0, 15, 5, 0, 0, 0, 7, 7, 25, 7, 9, 3, 21, 0, 0
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.
CROSSREFS
a(3:) = A125616 - A076410.
Sequence in context: A247704 A372344 A127802 * A300288 A340555 A094901
KEYWORD
nonn
AUTHOR
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