OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..2500
Naohiro Nomoto, In the list of divisors of n,... [Broken link]
EXAMPLE
Divisors of 12200 are (1, 10, 100, 122, 1220, 12200); the numbers of digits (0-2) are [0(6), 1(6), 2(6)].
MAPLE
f:= proc(n) local D, v, r, i;
D:= map(op@convert, convert(numtheory:-divisors(n), list), base, 3);
if nops({numboccur(0, D), numboccur(1, D), numboccur(2, D)})=1 then
r:= convert(n, base, 3);
add(r[i]*10^(i-1), i=1..nops(r))
fi
end proc:
map(f, [$1..3^8]); # Robert Israel, Nov 14 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved