OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
from itertools import islice
from collections import Counter
def agen(): # generator of terms
an, c = 1, Counter()
while True:
yield an
c.update(list(str(an)))
m, argm = -1, None
for d in "1234567890":
if c[d] >= m:
m, argm = c[d], d
an += 10 if argm == "0" else int(argm)
print(list(islice(agen(), 65))) # Michael S. Branicky, Oct 03 2024
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Jan 21 2005
STATUS
approved