OFFSET
1,3
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = Sum_{k=1..n} (n-k | k) where (i | j) is the Kronecker symbol.
MAPLE
f:= n -> add(numtheory:-jacobi(n-k, k), k=1..n); # Robert Israel, Mar 11 2018
MATHEMATICA
a[n_] := Sum[ KroneckerSymbol[n - k, k], {k, 1, n}]; Table[a[n], {n, 1, 81}] (* Jean-François Alcover, Jul 02 2013 *)
PROG
(Sage)
def A215200_row(n): return [kronecker_symbol(n-k, k) for k in (1..n)]
[sum(A215200_row(n)) for n in (1..81)]
(PARI) a(n) = sum(k = 1, n, kronecker(n-k, k)); \\ Amiram Eldar, Nov 07 2024
CROSSREFS
KEYWORD
sign,look
AUTHOR
Peter Luschny, Aug 07 2012
STATUS
approved