Ira S. answered 10/06/16
Tutor
5.0
(298)
Bilingual math tutor and much more
yes, there is a formula.
A diagonal is formed when the segment is connected to a non consecutive vertex of the polygon.
So if you have hexagon ABCDEF. the diagonal from vertex A cnnot go to A(itself), B(clockwise consecutive), or F( counter clockwise consecutive, which leaves 3 vertices that will lead to a diagonal.....AC,AD and AE.
This is the same for vertex B....and all the other vertices. So that would be 3 diagonals from each of 6 vertices making 18.
BUT...AE and EA are the same diagonal....and so is BD and DB....so you counted all the diagonals twice. So 18/2=9 diagonals for a hexagon.
So your 20 sided polygon(called an icosagon).
20 vertices. you can't draw from the vertex to itself or either of the 2 consecutive vertices....leaving 17 vertices from each vertex.
So 20vertices * 17 diagonals divided by 2 for the repetitions = 170 diagonals.
In general, if n is the number of sides, then n is also the number of vertices.
So d, the number of diagonals, d=n(n-3)/2
Hope this helped.