login
A165582
Partial sums of A165581.
15
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,3
COMMENTS
Period 524287. The largest value 658 occurs in four positions: a(184560) = a(184562) = a(339724) = a(339726) = 658. Note that a(262143) = 255 and a(174762) = a(349524) = 510. (Cf. to A165477 and see comments at A165479).
PROG
(PARI) a(n)=sum(k=1, n%524287, kronecker(n, 524287)) \\ Charles R Greathouse IV, Aug 06 2012
CROSSREFS
Positions of zeros: A165583. See also A165584, A165585. Similar sequences: A165472, A165477, A165482, A165575-A165579, A165582, A165587, A165592, A165597.
Sequence in context: A175799 A123739 A165575 * A165472 A228109 A318682
KEYWORD
sign,easy
AUTHOR
Antti Karttunen, Sep 22 2009
STATUS
approved