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.

Showing 1-1 of 1 results.

A345392 a(n) is the least k > 1 such that n and k*n have the same set of decimal digits.

Original entry on oeis.org

2, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 101, 101, 87, 101, 77, 101, 101, 66, 101, 10, 101, 101, 14, 101, 9, 87, 101, 101, 101, 10, 43, 101, 101, 101, 101, 101, 101, 101, 87, 10, 101, 101, 8, 101, 99, 14, 101, 101, 101, 10, 101, 101, 101, 101, 101, 101, 101
Offset: 0

Views

Author

Rémy Sigrist, Jun 17 2021

Keywords

Crossrefs

Programs

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

Formula

a(n) = A345391(n) / n for any n > 0.
a(n) = 2 for any n in A023086.
Showing 1-1 of 1 results.