OFFSET
1,2
COMMENTS
The sequence as a whole is palindromic; a(n) = a(28-n). - Jon E. Schoenfield, Nov 19 2016
FORMULA
G.f.: (1 - x^10)^2*(x - x^10)/(1 - x)^3. - Miquel Cerda, Jul 09 2017
EXAMPLE
a(4) = 10 because there are 10 different 3-digit numbers whose digit sum is 4 (103, 112, 121, 130, 202, 211, 220, 301, 310, 400, which are the 3-digit elements of A052218).
MAPLE
for i from 1 to 9*3 do a[i] := 0:od:for i from 100 to 999 dob := convert(i, base, 10): s := sum(b[j], j=1..nops(b)):a[s] := a[s]+1:od:seq(a[j], j=1..3*9);
CROSSREFS
KEYWORD
fini,full,nonn,base
AUTHOR
Graeme McRae, Jun 07 2002
EXTENSIONS
Corrected and extended by Sascha Kurz, Feb 07 2003
Name clarified by Jon E. Schoenfield, Nov 20 2016
STATUS
approved