OFFSET
1,2
EXAMPLE
n=9 -> 9{10}=10{9}=11{8}=12{7}=13{6}=14{5}=21{4}=100{3}=1001{2} -> 91011121314211001001 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[::-1]))
return any(cn%int(sbi) == 0 for sbi in sb)
print([k for k in range(1, 865) 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