[go: up one dir, main page]

login
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