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