A165582 Partial sums of A165581.
0, 1, 2, 1, 2, 1, 0, -1, 0, 1, 0, -1, -2, -1, -2, -1, 0, -1, 0, -1, -2, -1, -2, -3, -4, -3, -2, -3, -4, -3, -2, -1, 0, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 1, 0, -1, -2, -3, -4, -3, -2, -1, 0, 1, 0, 1, 0, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 5, 6, 7, 8, 9, 10, 9, 8, 9, 8, 9, 8, 9, 10, 9, 10, 11, 10
Offset: 0
Links
- A. Karttunen, Table of n, a(n) for n = 0..524287
Crossrefs
Programs
-
PARI
a(n)=sum(k=1,n%524287,kronecker(n,524287)) \\ Charles R Greathouse IV, Aug 06 2012
Comments