A165578 Partial sums of A011627.
0, 1, 0, 1, 2, 3, 2, 1, 0, 1, 0, 1, 2, 1, 2, 3, 4, 5, 4, 5, 6, 5, 4, 3, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 0, -1, 0, 1, 0, -1, -2, -3, -2, -1, 0, 1, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 4, 5, 6, 5, 6, 7, 8, 7, 8, 7, 6, 5, 6, 5, 6, 7, 6, 5, 4, 5, 6, 5, 6, 5, 6, 7, 8, 9, 8, 9, 8, 7, 6, 5, 4, 5, 4, 3, 4, 5, 4, 5, 4
Offset: 0
Links
- A. Karttunen, Table of n, a(n) for n = 0..229
Crossrefs
Programs
-
Mathematica
Accumulate[JacobiSymbol[Range[0,120],229]] (* Harvey P. Dale, Feb 12 2022 *)
-
PARI
a(n)=sum(k=1,n%229,kronecker(k,229)) \\ Charles R Greathouse IV, Feb 11 2013
Formula
a(n) = -(a(n-1) + a(n-2) + ... + a(n-228)) = a(n-229). - Charles R Greathouse IV, Feb 11 2013
Comments