This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A165582 #5 Aug 06 2012 16:35:04 %S A165582 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, %T A165582 -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, %U A165582 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 %N A165582 Partial sums of A165581. %C A165582 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). %H A165582 A. Karttunen, <a href="/A165582/b165582.txt">Table of n, a(n) for n = 0..524287</a> %o A165582 (PARI) a(n)=sum(k=1,n%524287,kronecker(n,524287)) \\ _Charles R Greathouse IV_, Aug 06 2012 %Y A165582 Positions of zeros: A165583. See also A165584, A165585. Similar sequences: A165472, A165477, A165482, A165575-A165579, A165582, A165587, A165592, A165597. %K A165582 sign,easy %O A165582 0,3 %A A165582 _Antti Karttunen_, Sep 22 2009