login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A358615
Record high values in A358497.
1
1, 12, 122, 123, 1222, 1223, 1232, 1233, 1234, 12222, 12223, 12232, 12233, 12234, 12322, 12323, 12324, 12332, 12333, 12334, 12342, 12343, 12344, 12345, 122222, 122223, 122232, 122233, 122234, 122322, 122323, 122324, 122332, 122333, 122334, 122342, 122343, 122344
OFFSET
1,2
PROG
(Python)
def A358497(n):
d, s, k = dict(), str(n), 1
for i in range(len(s)):
if d.get(s[i], 0) == 0:
d[s[i]] = str(k)
k = (k + 1)%10
s_t = list(s)
for i in range(len(s)):s_t[i] = d[s[i]]
return int(''.join(s_t))
terms = [1, ]
for i in range(1, 10**6):
if A358497(i)>terms[-1]:terms.append(A358497(i))
print(terms)
CROSSREFS
Sequence in context: A214317 A037487 A332603 * A231869 A038490 A329360
KEYWORD
nonn,base
AUTHOR
Gleb Ivanov, Nov 23 2022
STATUS
approved