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 A370975 #16 Apr 17 2024 15:04:15 %S A370975 1,1,-1,1,1,1,-2,2,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,1,1,-1,1, %T A370975 -1,1,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-1,-1,2,-2,2,1,-2,2,-2,2,-2, %U A370975 2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2 %N A370975 a(n) = (A370952(n+1) - A370952(n)) /(2*n+1). %H A370975 Chai Wah Wu, <a href="/A370975/b370975.txt">Table of n, a(n) for n = 1..10000</a> %o A370975 (Python) %o A370975 from itertools import count, islice %o A370975 def A370975_gen(): # generator of terms %o A370975 a, aset = 1, {0,1} %o A370975 for p in count(3,2): %o A370975 for b in count(a%p,p): %o A370975 if b not in aset: %o A370975 aset.add(b) %o A370975 yield (b-a)//p %o A370975 a = b %o A370975 break %o A370975 A370095_list = list(islice(A370975_gen(),20)) # _Chai Wah Wu_, Apr 17 2024 %Y A370975 Cf. A370952, A372052. %K A370975 sign %O A370975 1,7 %A A370975 _N. J. A. Sloane_, Apr 17 2024