login
A093031
Create a histogram of the digits used so far in the sequence. Add to the last element of the sequence the least used digit on the histogram. If two or more digits have the same score in the histogram, add the smallest. 0 is to be interpreted as 10 and so comes after 9. So if 0 is the digit to add, add 10 instead. Start the sequence with 0.
2
0, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 25, 29, 33, 37, 41, 47, 53, 59, 65, 73, 81, 87, 93, 99, 105, 111, 117, 123, 129, 135, 141, 147, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 249, 255, 261, 267, 273, 279, 285, 291, 297, 303
OFFSET
1,3
COMMENTS
a(135) = a(134) + 10 = 821 is the first time 10 is added. - Michael S. Branicky, Oct 01 2024
LINKS
PROG
(Python)
from itertools import islice
from collections import Counter
def agen(): # generator of terms
an, c = 0, Counter()
while True:
yield an
c.update(list(str(an)))
m, argm = float('inf'), 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(), 60))) # Michael S. Branicky, Oct 01 2024
CROSSREFS
Sequence in context: A357377 A062505 A230104 * A378175 A305468 A143452
KEYWORD
nonn,base
AUTHOR
Eric Angelini, May 07 2004
EXTENSIONS
Offset changed to 1 by Michael S. Branicky, Oct 01 2024
STATUS
approved