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):
print(terms)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Gleb Ivanov, Nov 23 2022
STATUS
approved