Decomposing Polygons into Triangles

Description of the GeoGebra applet:
This GeoGebra applet enables you to select the number of sides for the polygon, ranging from three (3) to twelve (12), by adjusting the slider.
Task
For each polygon, use the line segment tool to decompose it into triangles and record the minimum number needed on the table below the applet. Based on these findings, determine the [b][i]pattern for the least number of triangles required to form any polygon.[/i][/b]

Information: Decomposing Polygons into Triangles