document.write( "Question 1210172: Given a regular octagon, in how many ways can we color one diagonal red and another diagonal blue so that the two colored diagonals intersect at an endpoint? Consider rotations and reflections distinct.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #851448 by ikleyn(52777)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "Given a regular octagon, in how many ways can we color one diagonal red and another diagonal blue
\n" ); document.write( "so that the two colored diagonals intersect at an endpoint? Consider rotations and reflections distinct.
\n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Let's consider any one vertex of the octagon.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The number of diagonals emanating from this vertex is 8 - 3 = 5.\r\n" );
document.write( "\r\n" );
document.write( "The number of \"other\" diagonals emanating from this vertex is 5 - 3 - 1 = 4. \r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    +--------------------------------------------------------------+\r\n" );
document.write( "    |       So, there are \"%285%2A4%29%2F2\" = 10 geometrically                |\r\n" );
document.write( "    |   different pairs of diagonals emanating from each vertex.   |\r\n" );
document.write( "    +-------------------------------=========----------------------+\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Hence, in total, there are 8*10 = 80 geometrically different pairs of diagonals\r\n" );
document.write( "emanating from 8 vertices of the octagon.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Each pair can be colored in 2 different ways, red-blue or blue-red.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "It gives 2*80 = 160 different ways to color all the pairs of diagonals,\r\n" );
document.write( "emanated from 8 vertices of the octagon. \r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER.  There are 160 different ways to color all the pairs of diagonals,\r\n" );
document.write( "         emanated from 8 vertices of the octagon. \r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In my solution, I assume that the question does relate to all possible pairs
\n" ); document.write( "of diagonals for \"highlight%28highlight%28all%29%29\" vertices of the octagon, having a common endpoint at vertices.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I make this addition, since the question in the post is posed in a very unclear way.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you want the answer for one single vertex, then the number of geometrically different pairs
\n" ); document.write( "of diagonals from this vertex is 10 and the number of different coloring of these 10 pairs is 20.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In the post by @CPhill, counting of diagonals in the octagon is made INCORRECTLY.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );