OFFSET
1,2
LINKS
Sean A. Irvine, Java program (github)
PROG
(Python)
from itertools import count, islice
def agen(): # generator of terms
slst = []
for n in count(1):
s, greatest, argreatest = str(n), "/", None
for i in range(len(slst)+1):
t = "".join(slst[:i]) + s + "".join(slst[i:])
if t > greatest: greatest, argreatest = t, i
slst.insert(argreatest, s)
yield int("".join(slst))
print(list(islice(agen(), 16))) # Michael S. Branicky, Nov 30 2022
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Henry Bottomley, Apr 02 2001
EXTENSIONS
Incorrect comment removed by Sean A. Irvine, Nov 30 2022
STATUS
approved