OFFSET
1,10
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
a(10) = 2 as the digit 1 is the second digit 1 and the digit 0 is the first digit 0 giving 2*1.
PROG
(PARI) first(n) = my(v=vector(10), res=vector(n)); for(i=1, n, c=1; d=digits(i); for(i=1, #d, v[d[i]+1]++; c*=v[d[i]+1]); res[i] = c); res
(Python)
def aupto(limit):
f, alst = [0 for i in range(10)], []
for n in range(1, limit+1):
p = 1
for d in list(map(int, str(n))): f[d] += 1; p *= f[d]
alst.append(p)
return alst
print(aupto(66)) # Michael S. Branicky, Apr 23 2021
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
David A. Corneth, Apr 23 2021
STATUS
approved