OFFSET
1,2
EXAMPLE
n=9 -> 1001{2}=100{3}=21{4}=14{5}=13{6}=12{7}=11{8}=10{9}=9{10} -> 10011002114131211109 which is divisible by 21 (from 9 in base 4).
PROG
(Python)
from sympy.ntheory.digits import digits
def ok(n):
sb = ["".join(str(d) for d in digits(n, b)[1:]) for b in range(2, 11)]
cn = int("".join(sb))
return any(cn%int(sbi) == 0 for sbi in sb)
print([k for k in range(1, 1251) if ok(k)]) # Michael S. Branicky, Jan 25 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Feb 15 2000
EXTENSIONS
Data corrected by Sean A. Irvine, Jan 25 2022
STATUS
approved