OFFSET
1,4
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
Wikipedia, Kronecker symbol
MATHEMATICA
Table[Sum[KroneckerSymbol[k, n]*k, {k, 0, n - 1}], {n, 0, 50}] (* G. C. Greubel, Apr 23 2018 *)
PROG
(PARI) a(n) = sum(i=1, n-1, kronecker(i, n)*i)
CROSSREFS
KEYWORD
sign,changed
AUTHOR
Max Alekseyev, Aug 11 2013
STATUS
approved