document.write( "Question 952916: how many 5 digit counting numbers contain at least one 6
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #721003 by ikleyn(52780)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "This problem is solved in 3 steps.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Step 1.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "How many are there 5 digit counting numbers in all ?\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The answer is  9*10*10*10*10 = 90000,  because such a number can have\r\n" );
document.write( "\r\n" );
document.write( "    - any of  9 digits from 1 to 9 in the mostleft position;\r\n" );
document.write( "    - any of 10 digits from 0 to 9 in the 2nd position;\r\n" );
document.write( "    - any of 10 digits from 0 to 9 in the 3rd position;\r\n" );
document.write( "    - any of 10 digits from 0 to 9 in the 4th position;\r\n" );
document.write( "    - any of 10 digits from 0 to 9 in the 5th position.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "In all, there are 90000 such numbers.\r\n" );
document.write( "
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Step 2.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "How many are there 5 digit counting numbers that HAVE NO the digit 6 ?\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The answer is 8*9*9*9*9 = 52488, because such a number can have\r\n" );
document.write( "\r\n" );
document.write( "    - any of  8 digits from 1 to 9 except of 6 in the mostleft position;\r\n" );
document.write( "    - any of  9 digits from 0 to 9 except of 6 in the 2nd position;\r\n" );
document.write( "    - any of  9 digits from 0 to 9 except of 6 in the 3rd position;\r\n" );
document.write( "    - any of  9 digits from 0 to 9 except of 6 in the 4th position;\r\n" );
document.write( "    - any of  9 digits from 0 to 9 except of 6 in the 5th position.\r\n" );
document.write( "
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Step 3.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Now the number under the problem's question is the difference 90000 - 52488 = 37512.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );