document.write( "Question 549565: what is the formula for finding the number of diagonals in a shape e.g. triangle has 0 diagonals, quadrilateral has 2 diagonals, pentagon has 5 diagonals, hexagon has 9 diagonals, and so on. \n" ); document.write( "
Algebra.Com's Answer #357871 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
what is the formula for finding the number of diagonals in a shape e.g. triangle has 0 diagonals, quadrilateral has 2 diagonals, pentagon has 5 diagonals, hexagon has 9 diagonals, and so on.
\n" ); document.write( "-------
\n" ); document.write( "An n-gon has n vertices.
\n" ); document.write( "Each pair of vertices determins a line: nC2 = [n(n-1)]/2] lines
\n" ); document.write( "-----------
\n" ); document.write( "n of those lines are sides of the n-gon
\n" ); document.write( "----------------
\n" ); document.write( "So, # of diagonals = nC2 - n
\n" ); document.write( "----------------------------------
\n" ); document.write( "triangle: # = 3C2-n = 3-3 = 0
\n" ); document.write( "----------
\n" ); document.write( "quadrilater: # = 4C2 - 4 = 6-4 = 2
\n" ); document.write( "----------
\n" ); document.write( "pentagon: # = 5C2 - 5 = 10-5 = 5
\n" ); document.write( "----
\n" ); document.write( "etc.
\n" ); document.write( "===============
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "
\n" );