Function Repository Resource:

RegularPolygonRegionCount

Source Notebook

Find the number of regions partitioned by the diagonals of a regular polygon

Contributed by: Wolfram|Alpha Math Team

ResourceFunction["RegularPolygonRegionCount"][n]

returns the number of regions formed by the diagonals of a regular polygon with n sides.

Examples

Basic Examples (2) 

Find the number of regions formed by the diagonals of a regular polygon with 17 sides:

In[1]:=
ResourceFunction["RegularPolygonRegionCount"][17]
Out[1]=

Find the number of regions formed by the diagonals of a regular polygon with 240 sides:

In[2]:=
ResourceFunction["RegularPolygonRegionCount"][240]
Out[2]=

Publisher

Wolfram|Alpha Math Team

Version History

  • 2.0.0 – 23 March 2023
  • 1.0.0 – 06 April 2020

Related Resources

License Information