document.write( "Question 266167: What is an algebraic expression for the number of diagonals in any polygon of n sides? \n" ); document.write( "
Algebra.Com's Answer #195597 by palanisamy(496)\"\" \"About 
You can put this solution on YOUR website!
A polygon has n sides and n vertices.
\n" ); document.write( "A diagonal is obtained by joining two vertices.
\n" ); document.write( "Total number = nC2 = n*(n-1)/2
\n" ); document.write( "But this includes the n sides also.
\n" ); document.write( "So the number of diagonals = n*(n-1)/2 -n
\n" ); document.write( " =[n*(n-1)-2n]/2
\n" ); document.write( " = n*(n-1-2)
\n" ); document.write( " = n(n-3)/2
\n" ); document.write( "
\n" );