Find the number of positive inters n <= 9; 999; 999 for which the sum of
the digits in (the base-10 representation of) n equals 31.