login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A370956
Record high values in A245340.
4
0, 1, 4, 8, 21, 1518, 2510, 4100, 11181, 18414, 30374, 50121, 82924, 136341, 611212, 4477981, 7351356, 12086260, 19861634, 32648059, 53646155, 144857355, 238062163, 643132294, 1736990151, 4691130396, 7709412048
OFFSET
1,3
COMMENTS
These numbers take a record number of steps to appear in A125717.
PROG
(Python)
from itertools import count, islice
def A370956_gen(): # generator of terms
a, aset, b, c = 0, set(), 0, -1
for n in count(1):
aset.add(a)
if a==b:
if n-1>c:
c = n-1
yield c
while b in aset:
b += 1
a = next(a for a in count(a%n, n) if a not in aset)
A370956_list = list(islice(A370956_gen(), 20)) # Chai Wah Wu, Mar 28 2024
CROSSREFS
See A370959 for the indices of these records in A245340.
Sequence in context: A248423 A319565 A129794 * A064503 A050482 A323584
KEYWORD
nonn,more
AUTHOR
N. J. A. Sloane, Mar 13 2024
EXTENSIONS
a(17)-a(24) from Michael S. Branicky, Mar 28 2024
a(25)-a(27) from Chai Wah Wu, Mar 28 2024
STATUS
approved