document.write( "Question 891360: A number is formed by writing the numbers 1 to 30 in order as shown
\n" ); document.write( "12345678910111213.........2930
\n" ); document.write( "Simon removed 45 of these 51 digits leaving 6 in their original order to make the largest 6 digit number possible. What is the sum of the digits of this number?
\n" ); document.write( "

Algebra.Com's Answer #539676 by richard1234(7193)\"\" \"About 
You can put this solution on YOUR website!
Ideally, we want as many 9's in front. There are only three 9's (9, 19, 29) and 99930 doesn't work. Next try 998abc. We cannot use the 9 in 29, so we are forced to use the 8 in 28, so abc can be anything in 2930. The best solution is 998930, and the sum of the digits is 9+9+8+9+3+0 = 38. \n" ); document.write( "
\n" );