OFFSET
1,1
COMMENTS
a(21)=1 (9^21 has 21 digits). For all n>21, a(n)=0.
EXAMPLE
a(2) is 27 because 27 2-digit integers can be written as the product of 2 single-digit integers. Those 27 integers are: 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, 28, 30, 32, 35, 36, 40, 42, 45, 48, 49, 54, 56, 63, 64, 72 and 81. Note that each of the 2-digit integers 12, 16, 18, 24 and 36 can be expressed as a product of 2 single-digit integers in more than 1 way. However, each of those 2-digit integers is only counted once.
PROG
(Python)
from math import prod
from itertools import combinations_with_replacement as cwr
def a(n):
if n > 21: return 0
L, U = (n>1)*10**(n-1)-1, 10**n
return len(set(p for mc in cwr(range(10), n) if L < (p:=prod(mc)) < U))
print([a(n) for n in range(1, 22)]) # Michael S. Branicky, Aug 27 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clive Tooth, Aug 27 2024
STATUS
approved