cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A358615 Record high values in A358497.

Original entry on oeis.org

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

Views

Author

Gleb Ivanov, Nov 23 2022

Keywords

Crossrefs

Programs

  • 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)