OFFSET
1,1
COMMENTS
Leading zeros are not allowed.
If k is a term, then so are 10^m*k for m > 0, with at most two exceptions.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 135 is a term because it is the concatenation of 1, 3 and 5, which are all distinct and all divide 135.
MAPLE
filter:= proc(n) local i, j, a, bc, b, c;
for i from 1 to ilog10(n)-1 do
a:= n mod 10^i;
if a < 10^(i-1) or n mod a <> 0 then next fi;
bc:= (n-a)/10^i;
for j from 1 to ilog10(bc) do
c:= bc mod 10^j;
if c = a or c < 10^(j-1) or n mod c <> 0 then next fi;
b:= (bc-c)/10^j;
if b <> a and b <> c and n mod b = 0 then return true fi;
od od;
false
end proc:
select(filter, [$1..10^4]);
MATHEMATICA
f[{a_, b_, c_}]:=FromDigits[Flatten[IntegerDigits/@{a, b, c}]]; q[k_]:=ContainsAny[f/@Permutations[Drop[Divisors[k], -1], {3}], {k}]; Select[Range[1368], q] (* James C. McMahon, Apr 17 2026 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert Israel, Apr 12 2026
STATUS
approved
