document.write( "Question 1186630: what fraction of the integers \"highlight%28cross%28berween%29%29\" between 0 and 1000 include exactly two 6s? \n" ); document.write( "
Algebra.Com's Answer #817559 by ikleyn(52915)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "what fraction of the integers between 0 and 1000 include exactly two 6s?
\n" ); document.write( "~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "            This problem has a brilliant,  elegant and unexpectedly simple solution.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Consider all integer numbers from 0 to 999, inclusive.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "In all, there are exactly 1000 such numbers.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Will consider one-digit numbers, like 3, 7 as three digit numbers with leading zeroes  003, 007.\r\n" );
document.write( "\r\n" );
document.write( "Will consider two digit numbers, like 37 as three digit numbers with leading zero 037.\r\n" );
document.write( "\r\n" );
document.write( "It will change NOTHING in the solution.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "All such three-digit numbers, that have only two digits \"6\", are in the following three disjoint categories:\r\n" );
document.write( "\r\n" );
document.write( "    - having \"6\" in the first  and the second positions, only;\r\n" );
document.write( "\r\n" );
document.write( "    - having \"6\" in the first  and the third  positions, only;\r\n" );
document.write( "\r\n" );
document.write( "    - having \"6\" in the second and the third positions, only.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Now, let's consider all three-digit numbers with the digits 6 in \"hundreds\" and \"tens\" position.\r\n" );
document.write( "\r\n" );
document.write( "    The amount of such numbers is 9, obviously, because there are 9 such thre-digit numbers that have 9 possible digits \r\n" );
document.write( "    (all excepting 6)  in the \"ones\" position.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Next, consider all three-digit numbers with the digits 6 in \"hundreds\" and \"ones\" position.\r\n" );
document.write( "\r\n" );
document.write( "    The amount of such numbers is 9, obviously, because there are 9 such thre-digit numbers that have 9 possible digits \r\n" );
document.write( "    (all excepting 6) in the \"tens\" position.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Finally, consider all three-digit numbers with the digits 6 in \"tens\" and \"ones\" position.\r\n" );
document.write( "\r\n" );
document.write( "    The amount of such numbers is 9, obviously, because there are 9 such thre-digit numbers that have 9 possible digits \r\n" );
document.write( "    (all excepting 6) in the \"ones\" position.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER.  In all, there are 9+9+9 = 27 numbers from 0 to 1000, having only two digits \"6\" in their records.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );