OFFSET
0,1
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
PROG
(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
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jun 17 2021
STATUS
approved