OFFSET
0,3
COMMENTS
Note that this does not represent the number of n-digit numbers that satisfy this property; that would require the computation of the permutations of each multiset.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
EXAMPLE
For n = 2, the a(2) = 9 solutions are [11,12,13,14,15,16,17,18,19].
For n = 3, the a(3) = 10 solutions are [111,112,113,114,115,116,117,118,119,122].
MAPLE
b:= proc(n, i, s, p) option remember; `if`(s+n*i<=p, 0,
`if`(n=0, 1, add(b(n-1, j, s+j, p*j), j=1..i)))
end:
a:= n-> b(n, 9, 0, 1):
seq(a(n), n=0..100); # Alois P. Heinz, Feb 11 2023
CROSSREFS
KEYWORD
AUTHOR
Charles Bershatsky, Feb 10 2023
STATUS
approved