OFFSET
0,11
LINKS
EXAMPLE
a(42)=#{7,8,9,16,17,18,19,25,26,27,28,29,34,35,36,37,38,39}=18.
MATHEMATICA
nn=90; With[{c=Table[{n, Total[IntegerDigits[n]]}, {n, 0, nn}]}, Table[ Count[Take[c, i], _?(#[[2]]>c[[i, 2]]&)], {i, nn}]] (* Harvey P. Dale, Sep 24 2012 *)
CROSSREFS
KEYWORD
AUTHOR
Reinhard Zumkeller, Mar 19 2008
STATUS
approved