document.write( "Question 934615: How many numbers less than 1 million do not contain the digit 2? \n" ); document.write( "
Algebra.Com's Answer #567639 by KMST(5328)\"\" \"About 
You can put this solution on YOUR website!
ANSWER:
\n" ); document.write( "Counting only positive integers (not counting zero),
\n" ); document.write( "there are \"9%5E6-1=531441-1=highlight%28531440%29\" numbers less than 1 million that do not contain the digit 2.
\n" ); document.write( "If we count zero, then it is just \"531441\" .
\n" ); document.write( "
\n" ); document.write( "EXPLANATION:
\n" ); document.write( "Counting zero, numbers less than 1 million can be considered sequences of 6 digits,
\n" ); document.write( "\"0+=%22000%2C000%22\" , \"1=%22000%2C000%22\" , ..... \"%22999%2C999%22\" ,
\n" ); document.write( "so there are \"10\" possible choices for each digit position,
\n" ); document.write( "and as a consequence \"10%2A10%2A10%2A10%2A10%2A10=10%5E6=%221%2C000%2C000%22\" .
\n" ); document.write( "If we do not count \"0+=%22000%2C000%22\" , then there would be \"1\" less.
\n" ); document.write( "If we cannot use the digit \"2\" ,
\n" ); document.write( "there are only \"9\" choices for each digit position,
\n" ); document.write( "and we get \"9%5E6=531441\" 6-digit sequences made from the digits 0,1,3,4,5,6,7,8,9,
\n" ); document.write( "including \"%22000%2C000%22\" , which represents the number \"0\" .\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );