|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
These numbers take a record number of steps to appear in A125717.
|
|
LINKS
|
|
|
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
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|