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)
CROSSREFS
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