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.

A345391 a(n) is the least proper multiple of n with the same set of decimal digits as n.

Original entry on oeis.org

11, 22, 33, 44, 55, 66, 77, 88, 99, 100, 1111, 1212, 1131, 1414, 1155, 1616, 1717, 1188, 1919, 200, 2121, 2222, 322, 2424, 225, 2262, 2727, 2828, 2929, 300, 1333, 3232, 3333, 3434, 3535, 3636, 3737, 3838, 3393, 400, 4141, 4242, 344, 4444, 4455, 644, 4747
Offset: 1

Views

Author

Rémy Sigrist, Jun 17 2021

Keywords

Crossrefs

Programs

  • PARI
    a(n) = { my (d=Set(digits(n))); forstep (m=2*n, oo, n, if (Set(digits(m))==d, return (m))) }
    
  • Python
    def a(n):
        kn, ss = 2*n, set(str(n))
        while set(str(kn)) != ss: kn += n
        return kn
    print([a(n) for n in range(1, 49)]) # Michael S. Branicky, Jun 17 2021

Formula

a(n) <= A020338(n) for any n > 0.