document.write( "Question 1202348: The prairie dogs were having a town meeting to talk about the blackfooted ferret that was terrorizing the neighborhood. One town council dog suggested building a network of tunnels connecting every burrow to every other burrow. Then someone said Are you crazy ? We have nine burrows. Thats too many tunnels nd too much money to build them. If each tunnel cost $1.00 to build, how much would it cost the prairie dogs to connect every burrow with every other burrow? \n" ); document.write( "
Algebra.Com's Answer #837116 by math_tutor2020(3817)![]() ![]() ![]() You can put this solution on YOUR website! \n" ); document.write( "Answer: 36 tunnels \n" ); document.write( "Total cost = $36\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "====================================================================\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Explanation:\r \n" ); document.write( "\n" ); document.write( "Let's say for example there are 5 burrows labeled A,B,C,D,E.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Make a 5 by 5 table with those labels along the left and top side. \n" ); document.write( "
\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "It's clear it makes no sense to build a tunnel connecting any given burrow to itself. We cannot connect A to A for instance.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Let's cross those entries out with an X. \n" ); document.write( "
\n" ); document.write( "The 5*5 = 25 entries has now dropped to 25-5 = 20 entries. We've subtracted off the 5 cells marked with X.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "In other words: \n" ); document.write( "25 - 5 \n" ); document.write( "5*5 - 5*1 \n" ); document.write( "5*(5-1) \n" ); document.write( "5*4\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Meaning that if we had n burrows, then we'd have n^2 - n = n*(n-1) entries after removing the northwest diagonal.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "But notice the symmetry of the table. The entries marked with Y represent connecting burrow A to C \n" ); document.write( "
\n" ); document.write( "We've double-counted things when marking two instances of Y. \n" ); document.write( "So we ignore either the lower half or the upper half. The string of X's is the divider line.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "This means we'll divide by 2 when ignoring half of the cells of the table.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "There are 5*4/2 = 20/2 = 10 different tunnels connecting the five burrows together. \n" ); document.write( "The ten tunnels are: \n" ); document.write( " \r\n" ); document.write( "AB\r\n" ); document.write( "AC\r\n" ); document.write( "AD\r\n" ); document.write( "AE\r\n" ); document.write( "\r\n" ); document.write( "BC\r\n" ); document.write( "BD\r\n" ); document.write( "BE\r\n" ); document.write( "\r\n" ); document.write( "CD\r\n" ); document.write( "CE\r\n" ); document.write( "\r\n" ); document.write( "DE\r\n" ); document.write( " \n" ); document.write( "A tunnel like AB is the same as BA. Order doesn't matter.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The formula in general is n*(n-1)/2 which is found in the nCr formula when r = 2.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "If we had n = 9 burrows, then, \n" ); document.write( "n*(n-1)/2 \n" ); document.write( "9*(9-1)/2 \n" ); document.write( "9*8/2 \n" ); document.write( "72/2 \n" ); document.write( "36\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "There are 36 tunnels connecting the 9 burrows to each other. Each tunnel costs $1.00, which means the total cost is $36. \n" ); document.write( " \n" ); document.write( " |