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 A370959 #16 Mar 28 2024 16:12:07 %S A370959 0,1,2,4,5,14,52,82,356,392,688,704,751,1325,1748,6683,12570,24740, %T A370959 28291,28307,45136,77226,128419,135993,341522,362992,643110 %N A370959 Indices of high points in A245340. %o A370959 (Python) %o A370959 from itertools import count, islice %o A370959 def A370959_gen(): # generator of terms %o A370959 a, aset, b, c = 0, set(), 0, -1 %o A370959 for n in count(1): %o A370959 aset.add(a) %o A370959 if a==b: %o A370959 if n-1>c: %o A370959 c = n-1 %o A370959 yield a %o A370959 while b in aset: %o A370959 b += 1 %o A370959 a = next(a for a in count(a%n,n) if a not in aset) %o A370959 A370959_list = list(islice(A370959_gen(), 20)) # _Chai Wah Wu_, Mar 28 2024 %Y A370959 The companion to A370956. %Y A370959 Cf. A245340. %K A370959 nonn,more %O A370959 1,3 %A A370959 _N. J. A. Sloane_, Mar 28 2024 %E A370959 a(17)-a(23) from _Michael S. Branicky_, Mar 28 2024 %E A370959 a(24)-a(27) from _Chai Wah Wu_, Mar 28 2024