OFFSET
1,1
COMMENTS
As A066310 is finite there exists m such that a(n) = 0 for all n > m.
a(n) = 0 for n >= 85 since 9^n*9n <= 10^(n-1) for n >= 85. This may occur as early as n = 60, as 9^n*9n <= 10^n-1 for n >= 60. But a(59) > 0 since 10^59-1 < 9^59*9*59. - Michael S. Branicky, Mar 05 2021
LINKS
David A. Corneth, PARI program
EXAMPLE
a(1) = 8 as there are 8 one-digit numbers k as described in name. Those are {2, 3, 4, 5, 6, 7, 8, 9}.
PROG
(Python)
from math import prod
from itertools import combinations_with_replacement as cwr
def c(digs): return int("".join(map(str, digs))) < prod(digs) * sum(digs)
def a(n): return sum(1 for u in cwr(range(1, 10), n) if c(u))
print([a(n) for n in range(1, 16)]) # Michael S. Branicky, Mar 05 2021
(PARI) See PARI link
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
David A. Corneth, Mar 05 2021
EXTENSIONS
a(27)-a(41) from Michael S. Branicky, Mar 05 2021
STATUS
approved