OFFSET
1,1
EXAMPLE
2 = 2 has one distinct prime factor;
22 = 2 * 11 has two and 11 only has 1;
222 = 2 * 3 * 37 has three and 111 = 3 * 37 only has 2;
etc.
PROG
(Python)
from sympy import factorint
from itertools import count
def f(n): return len(factorint(n))
def a(n):
Rn, pow10 = (10**n-1)//9, 10**n
return next(t for d in count(0) for r in range(10**(d-1) if d else 0, 10**d) for m in range(1, 10) if f(t:=r*pow10 + m*Rn) == n)
print([a(n) for n in range(1, 10)])
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Michael S. Branicky, Sep 25 2025
EXTENSIONS
a(13) from Daniel Suteu, Oct 22 2025
STATUS
approved
