document.write( "Question 1011695: A dish contains n strands of cooked spaghetti. Two ends are chosen at random and tied together. Two other ends are selected and tied together.If this process continues until there are no more loose ends,
\n" ); document.write( "a) What is the probability that all n strands form one big loop?
\n" ); document.write( "b) What is the probability that there will be n loops each consisting of one strand?
\n" ); document.write( "

Algebra.Com's Answer #627803 by Edwin McCravy(20060)\"\" \"About 
You can put this solution on YOUR website!
A dish contains n strands of cooked spaghetti. Two ends are chosen
\n" ); document.write( "at random and tied together. Two other ends are selected and tied
\n" ); document.write( "together.If this process continues until there are no more loose
\n" ); document.write( "ends,
\n" ); document.write( "a) What is the probability that all n strands form one big loop?
\n" ); document.write( "
\r\n" );
document.write( "Choose one particular strand to begin with, call it strand A.\r\n" );
document.write( "Think of it being bent in an arc like this: \"drawing%2830%2C12.5%2C-1%2C1%2C.2%2C.5%2Ccircle%28.3%2C-.2%2C1.5%29%29\"\r\n" );
document.write( "Think of the loop being created beginning with strand A and tieing on \r\n" );
document.write( "strands one by one forming a single loop clockwise.\r\n" );
document.write( "\r\n" );
document.write( "Choose one of the remaining n-1 strands as the 2nd strand to \r\n" );
document.write( "tie onto the right end of the 1st strand (strand A) in n-1 ways.\r\n" );
document.write( "Choose which end of that strand to tie onto the right end\r\n" );
document.write( "of the 1st strand in 2 ways.\r\n" );
document.write( "\r\n" );
document.write( "Choose one of the remaining n-2 strands as the 3rd strand to tie \r\n" );
document.write( "onto the end of the 2nd strand in n-2 ways.\r\n" );
document.write( "Choose which end of the 3rd strand to tie onto the untied end\r\n" );
document.write( "of the 2nd strand in 2 ways.\r\n" );
document.write( "\r\n" );
document.write( "Choose one of the remaining n-3 strands as the 4th strand to tie \r\n" );
document.write( "onto the untied end of the 3rd strand in n-3 ways.\r\n" );
document.write( "Choose which end of the 4th strand to tie onto the untied end \r\n" );
document.write( "of the 3rd strand in 2 ways. \r\n" );
document.write( "\r\n" );
document.write( "...\r\n" );
document.write( "\r\n" );
document.write( "Choose one of the remaining 2 strands as the (n-1)st strand to tie \r\n" );
document.write( "onto the right end of the (n-2)nd strand in 2 ways.\r\n" );
document.write( "Choose which end of the (n-1)st strand to tie onto the untied end \r\n" );
document.write( "of the (n-2)nd strand in 2 ways.\r\n" );
document.write( "\r\n" );
document.write( "Choose the 1 remaining strand as the nth strand to tie \r\n" );
document.write( "onto the untied end of the (n-1)st strand in only 1 way.\r\n" );
document.write( "Choose which end of the nth strand to tie onto the untied end \r\n" );
document.write( "of the (n-1)st strand in 2 ways.\r\n" );
document.write( "\r\n" );
document.write( "Finally tie the untied end of the nth strand onto the left end\r\n" );
document.write( "of strand A.\r\n" );
document.write( "\r\n" );
document.write( "So the number of ways that can be done is \r\n" );
document.write( "\r\n" );
document.write( "(n-1)*2*(n-2)*2*(n-3)*2*...*2*2*1*2 = (n-1)!*2^(n-1)\r\n" );
document.write( "\r\n" );
document.write( "This is independent of the particular strand that was chosen\r\n" );
document.write( "for strand A.\r\n" );
document.write( "\r\n" );
document.write( "So the numerator of the desired probability is (n-1)!*2^(n-1)\r\n" );
document.write( " \r\n" );
document.write( "\r\n" );
document.write( "Next we must find the denominator of the probability.\r\n" );
document.write( "This is the hard part.\r\n" );
document.write( "\r\n" );
document.write( "First we find the number of ways he could tie them in a certain\r\n" );
document.write( "order, and then we will \"unorder\" them by dividing by n!.\r\n" );
document.write( "\r\n" );
document.write( "There are 2n ends.\r\n" );
document.write( "\r\n" );
document.write( "We pick the 1st pair of ends to tie together in \r\n" );
document.write( "C(2n,2) = \"%28%282n%29%282n-1%29%29%2F2%21\" ways.\r\n" );
document.write( "We pick the 2nd pair of ends to tie together in \r\n" );
document.write( "C((2n-2),2) = \"%28%282n-2%29%282n-3%29%29%2F2%21\" ways.\r\n" );
document.write( "We pick the 3rd pair of ends to tie together in \r\n" );
document.write( "C((2n-4),2) = \"%28%282n-4%29%282n-3%29%29%2F2%21\".\r\n" );
document.write( "\r\n" );
document.write( "...\r\n" );
document.write( "We pick the (n-1)st pair of ends to tie together in \r\n" );
document.write( "C(4,2) = \"%284%29%283%29%29%2F2%21\".\r\n" );
document.write( "We pick the nth pair of ends to tie together in \r\n" );
document.write( "C(2,2) = \"%28%282%29%281%29%29%2F2%21\".\r\n" );
document.write( "\r\n" );
document.write( "So the number of orderings of tieings is:\r\n" );
document.write( "\r\n" );
document.write( "\"%28%282n%29%282n-1%29%29%2F2%21\"\"%22%22%2A%22%22\"\"%28%282n-2%29%282n-3%29%29%2F2%21\"\"%22%22%2A%22%22\"\"%28%282n-4%29%282n-5%29%29%2F2%21\"\"%22%22%2A%22%22%2A%22%22%2A%22%22\"\"%28%284%29%283%29%29%2F2%21\"\"%22%22%2A%22%22\"\"%282%29%281%29%29%2F2%21\"\r\n" );
document.write( " \r\n" );
document.write( "That is equal to \r\n" );
document.write( "\r\n" );
document.write( "\"%282n%29%21%2F2%5En\"\r\n" );
document.write( "\r\n" );
document.write( "However, any given result of tied ends could have resulted from \r\n" );
document.write( "any of n! sequences of tieings.\r\n" );
document.write( "\r\n" );
document.write( "Therefore we must divide  \"%282n%29%21%2F2%5En\" by \"n%21\"\r\n" );
document.write( "\r\n" );
document.write( "So the denominator of the desired probability is\r\n" );
document.write( "\r\n" );
document.write( "\"%282n%29%21%2F%28n%21%2A2%5En%29\"   \r\n" );
document.write( "\r\n" );
document.write( "-----\r\n" );
document.write( "\r\n" );
document.write( "So the desired probability of (a) is \r\n" );
document.write( "\r\n" );
document.write( "\"%28n-1%29%212%5E%28n-1%29\"\"%22%F7%22\"\"%282n%29%21%2F%28n%21%2A2%5En%29\"\"%22%22=%22%22\"\r\n" );
document.write( "\r\n" );
document.write( "Invert and multiply and that can be simplified to \r\n" );
document.write( "\r\n" );
document.write( "\"%282%5E%282n-1%29%28n-1%29%21n%21%29%2F%28%282n%29%21%29\"\r\n" );
document.write( "\r\n" );
document.write( "If we multiply top and bottom by n, we get\r\n" );
document.write( "\r\n" );
document.write( "\"%282%5E%282n-1%29%28n%21%29%5E2%29%2F%28n%2A%282n%29%21%29\"\r\n" );
document.write( "

\n" ); document.write( "b) What is the probability that there will be n loops each
\n" ); document.write( "consisting of one strand?
\n" ); document.write( "
\r\n" );
document.write( "That's just 1 way out of the denominator calculated above, or\r\n" );
document.write( "\r\n" );
document.write( "\"1\"\"%22%F7%22\"\"%282n%29%21%2F%28n%21%2A2%5En%29\", or\r\n" );
document.write( "\r\n" );
document.write( "\"%28n%21%2A2%5En%29%2F%282n%29%21\"\r\n" );
document.write( "\r\n" );
document.write( "Edwin

\n" ); document.write( "
\n" ); document.write( "
\n" );