login
Partial sums of A011627.
2

%I #7 Feb 12 2022 13:18:11

%S 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,

%T 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,

%U 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

%N Partial sums of A011627.

%C Period 229.

%H A. Karttunen, <a href="/A165578/b165578.txt">Table of n, a(n) for n = 0..229</a>

%F a(n) = -(a(n-1) + a(n-2) + ... + a(n-228)) = a(n-229). - _Charles R Greathouse IV_, Feb 11 2013

%t Accumulate[JacobiSymbol[Range[0,120],229]] (* _Harvey P. Dale_, Feb 12 2022 *)

%o (PARI) a(n)=sum(k=1,n%229,kronecker(k,229)) \\ _Charles R Greathouse IV_, Feb 11 2013

%Y Similar sequences: A165575-A165579, A165472, A165477, A165482, A165582, A165587, A165592, A165597.

%K sign,easy

%O 0,5

%A _Antti Karttunen_, Sep 22 2009