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