cp's OEIS Frontend

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.

A370956 Record high values in A245340.

This page as a plain text file.
%I A370956 #20 Mar 28 2024 16:12:11
%S A370956 0,1,4,8,21,1518,2510,4100,11181,18414,30374,50121,82924,136341,
%T A370956 611212,4477981,7351356,12086260,19861634,32648059,53646155,144857355,
%U A370956 238062163,643132294,1736990151,4691130396,7709412048
%N A370956 Record high values in A245340.
%C A370956 These numbers take a record number of steps to appear in A125717.
%o A370956 (Python)
%o A370956 from itertools import count, islice
%o A370956 def A370956_gen(): # generator of terms
%o A370956     a, aset, b, c = 0, set(), 0, -1
%o A370956     for n in count(1):
%o A370956         aset.add(a)
%o A370956         if a==b:
%o A370956             if n-1>c:
%o A370956                 c = n-1
%o A370956                 yield c
%o A370956             while b in aset:
%o A370956                 b += 1
%o A370956         a = next(a for a in count(a%n,n) if a not in aset)
%o A370956 A370956_list = list(islice(A370956_gen(),20)) # _Chai Wah Wu_, Mar 28 2024
%Y A370956 Cf. A125717, A245340, A245394, A245395, A370951.
%Y A370956 See A370959 for the indices of these records in A245340.
%K A370956 nonn,more
%O A370956 1,3
%A A370956 _N. J. A. Sloane_, Mar 13 2024
%E A370956 a(17)-a(24) from _Michael S. Branicky_, Mar 28 2024
%E A370956 a(25)-a(27) from _Chai Wah Wu_, Mar 28 2024