OFFSET
1,2
COMMENTS
a(3) = 10, because 10 decimal numbers have 3 or fewer digits and a digit sum of 3: 3, 30, 300, 12, 120, 201, 21, 210, 102, 111.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1665
FORMULA
a(n) = [x^n] ((x^10-1)/(x-1))^n.
MAPLE
b:= proc(n, i) option remember;
`if`(n=0, 1, `if`(i=0, 0,
add(b(n-j, i-1), j=0..min(n, 9)) ))
end:
a:= n-> b(n, n):
seq(a(n), n=1..30);
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Alois P. Heinz, Nov 02 2009
STATUS
approved