document.write( "Question 277145: how many six digit numbers...\r
\n" );
document.write( "\n" );
document.write( "a. contain 7 at least once\r
\n" );
document.write( "\n" );
document.write( "b. start and end with a 7\r
\n" );
document.write( "\n" );
document.write( "c. have alternating 7 and non 7 digits \n" );
document.write( "
Algebra.Com's Answer #201824 by Edwin McCravy(20055)![]() ![]() You can put this solution on YOUR website! \r\n" ); document.write( "how many six digit numbers... \r\n" ); document.write( "a. contain 7 at least once \r\n" ); document.write( "\r\n" ); document.write( "We will find the total number of 6-digit numbers and then we\r\n" ); document.write( "will subtract from that the total number of 6-digit numbers\r\n" ); document.write( "which do not contain 7 at all, then what we get will be the\r\n" ); document.write( "number of 6-digit numbers that contain 7 at lease once.\r\n" ); document.write( "\r\n" ); document.write( "1. First we find the total number of 6-digit numbers.\r\n" ); document.write( "\r\n" ); document.write( "Take this sampole 6-digit number:\r\n" ); document.write( "\r\n" ); document.write( "825572 \r\n" ); document.write( "\r\n" ); document.write( "We can choose a digit to go where the 8 is 9 ways (only 9 \r\n" ); document.write( "ways since we CANNOT choose 0 for the first digit).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the first 2 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the first 5 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the second 5 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the 7 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the last digit 2 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "So there are 9x10x10x10x10x10 or 900000 6-digit numbers.\r\n" ); document.write( "\r\n" ); document.write( "[Note: we could have done that part this easier way:\r\n" ); document.write( "The largest 6 digit number is 999999. That means there are\r\n" ); document.write( "999999 positive integers from 1 to 999999, but the integers\r\n" ); document.write( "from 1 to 99999 have less than 6 digits, so to find the\r\n" ); document.write( "number of 6-digit numbers we subract 999999-99999=900000.\r\n" ); document.write( "But either way we get the same answer 900000.]\r\n" ); document.write( "\r\n" ); document.write( "2. Now we calculate the number of 6 digit numbers that do not\r\n" ); document.write( "contain a 7\r\n" ); document.write( "\r\n" ); document.write( "Take this sample 6-digit number which does not contain a 7\r\n" ); document.write( "\r\n" ); document.write( "899168\r\n" ); document.write( "\r\n" ); document.write( "We can choose a digit to go where the first 8 is 8 ways (only 8 \r\n" ); document.write( "ways since we CANNOT choose 0 or 7 for the first digit).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the first 9 is 9 ways (we CAN\r\n" ); document.write( "choose 0 but not 7).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the second 9 is 9 ways (we CAN\r\n" ); document.write( "choose 0 but not 7).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the 1 is 9 ways (we CAN\r\n" ); document.write( "choose 0 but not 7).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the 6 is 9 ways (we CAN\r\n" ); document.write( "choose 0 but not 7).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the last digit 8 is 9 ways (we CAN\r\n" ); document.write( "choose 0 but not 7).\r\n" ); document.write( "\r\n" ); document.write( "So there are 8x9x9x9x9x9 or 472392 6-digit numbers that do not contain 7.\r\n" ); document.write( "\r\n" ); document.write( "3. Now we subtract 472392 from 900000 and get 427608\r\n" ); document.write( "\r\n" ); document.write( "------------------------\r\n" ); document.write( "\r\n" ); document.write( "b. start and end with a 7 \r\n" ); document.write( "\r\n" ); document.write( "Take this sample 6-digit number which starts and ends with a 7\r\n" ); document.write( "\r\n" ); document.write( "734767\r\n" ); document.write( "\r\n" ); document.write( "We can choose a digit to go where the first 7 is 1 way (we MUST \r\n" ); document.write( "choose it to be 7).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the 3 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the 4 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the second 7 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "We can then choose a digit to go where the 6 is 10 ways (we CAN\r\n" ); document.write( "choose 0).\r\n" ); document.write( "\r\n" ); document.write( "We can choose a digit to go where the last 7 is 1 way (we MUST \r\n" ); document.write( "choose it to be 7).\r\n" ); document.write( "\r\n" ); document.write( "So there are 1x10x10x10x10x1 or 10000 6-digit numbers that do not contain 7.\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "c. have alternating 7 and non 7 digits.\r\n" ); document.write( "\r\n" ); document.write( "Ther can be like this:\r\n" ); document.write( "\r\n" ); document.write( "747379 where the 7's go 1st, 3rd and 5th\r\n" ); document.write( "\r\n" ); document.write( "The number of way is 1x9x1x9x1x9 or 729 \r\n" ); document.write( "\r\n" ); document.write( "or like this:\r\n" ); document.write( "\r\n" ); document.write( "579717 where the 7's go 2nd 4th and 6th.\r\n" ); document.write( "\r\n" ); document.write( "The number of way is 8x1x9x1x9x1 or 648 \r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "Answer = 729+648=1377\r\n" ); document.write( "\r\n" ); document.write( "Edwin \n" ); document.write( " \n" ); document.write( " |