OFFSET
1,1
COMMENTS
Is a(n) always an n-digit member of A043096, i.e. a number with all pairs of adjacent digits distinct?
EXAMPLE
a(4) = 1012 because 1012 = 2^2 * 11 * 23 has 4 prime factors, counted with multiplicity, and 4 runs in its decimal representation, and no smaller number works.
MAPLE
f:= proc(n)
local x, x0, L, t, i;
if n::odd then x0:= (10^(n+1)-1)/99 else x0:= (10^(n+1)-10)/99 fi;
for x from x0 do
L:= convert(x, base, 10);
t:= nops(L) - numboccur(0, L[2..-1]-L[1..-2]);
if t = n and numtheory:-bigomega(x) = n then return x fi
od
end proc:
map(f, [$1..23]);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert Israel, Jan 07 2025
STATUS
approved