login
A071957
Sum( i=1, n, K(i,n) ) where K(x,y) is the Kronecker symbol (x/y).
0
1, 1, 0, 2, 0, 2, 0, 0, 6, 2, 0, 0, 0, 4, 0, 8, 0, 0, 0, 0, 0, 2, 0, 0, 20, 6, 0, 0, 0, 4, 0, 0, 0, 4, 0, 12, 0, 6, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 42, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 0, 32, 0, 8, 0, 0, 0, 4, 0, 0, 0, 10, 0, 0, 0, 4, 0, 0, 54, 4, 0, 0, 0, 10, 0, 0, 0, 4, 0, 0, 0, 8, 0, 0, 0, 2, 0, 40
OFFSET
1,4
COMMENTS
a(n) is always >= 0
MATHEMATICA
Table[Sum[KroneckerSymbol[i, n], {i, n}], {n, 100}] (* Alonso del Arte, Dec 26 2012 *)
PROG
(PARI) for(n=1, 100, print1(sum(i=1, n, kronecker(i, n)), ", "))
CROSSREFS
Sequence in context: A073274 A192323 A242848 * A329186 A298609 A283978
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 16 2002
STATUS
approved