

A071933


a(n) = sum(i=1,n,K(i,i+1)) where K(x,y) is the Kronecker symbol (x/y).


0



1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 3, 4, 5, 4, 5, 6, 7, 6, 7, 8, 9, 8, 7, 8, 9, 8, 7, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 13, 14, 15, 14, 13, 14, 15, 14, 15, 16, 17, 16, 15, 16, 17, 16, 15, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 21, 22, 23, 22, 23
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,4


LINKS

Table of n, a(n) for n=1..79.


FORMULA

a(n) = n/4 + 0(n) asymptotically


PROG

(PARI) for(n=1, 100, print1(sum(i=1, n, kronecker(i, i+1)), ", "))


CROSSREFS

Sequence in context: A260112 A213183 A125929 * A209802 A064672 A138554
Adjacent sequences: A071930 A071931 A071932 * A071934 A071935 A071936


KEYWORD

easy,nonn


AUTHOR

Benoit Cloitre, Jun 14 2002


STATUS

approved



