document.write( "Question 1202441: Mrs. Green likes to serve two different kinds of vegetables with dinner. She has carrots, peas, okra, and green beans in her refrigerator . How many different sets of two vegetables can be serve? Tell wether this situation is a combination or permutation. \n" ); document.write( "
Algebra.Com's Answer #837288 by math_tutor2020(3817) ![]() You can put this solution on YOUR website! \n" ); document.write( "c = carrots \n" ); document.write( "p = peas \n" ); document.write( "o = okra \n" ); document.write( "g = green beans\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Let's make a table with 4 rows and 4 columns. Along the top and left side will be the letters mentioned \n" ); document.write( "
\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Assuming Mrs Green cannot select the same veggie twice, we cross off the items along the northwest (or southeast) diagonal. \n" ); document.write( "For example, the upper left corner has \"carrots\" chosen twice. \n" ); document.write( "
\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Let's also cross off items below the diagonal. This is because the table has symmetry along the diagonal. An item below the diagonal will have a mirrored copy above the diagonal \n" ); document.write( "
\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "There are 6 cells that haven't been crossed off, which is the final answer. \n" ); document.write( "For instance, the left-most cell of the top row represents the combo \"carrots and peas\" in either order.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "We started with a 4*4 = 16 cell table \n" ); document.write( "Then subtracted off the four diagonal elements: 16-4 = 12 \n" ); document.write( "Cut that result in half (because we crossed out the lower half below the diagonal) to get 12/2 = 6 \n" ); document.write( "This division by two operation is to avoid double-counting.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The general formula is n*(n-1)/2 where n is a positive integer. \n" ); document.write( "In this case we have n = 4 veggies to get n*(n-1)/2 = 4*(4-1)/2 = 6 combinations. Order doesn't matter. \n" ); document.write( "A combo like \"carrots and peas\" is the same as \"peas and carrots\".\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Notes:
|