Function Repository Resource:

DiagonalIntersectionsCount

Source Notebook

Find the number of intersections of the diagonals of a regular polygon

Contributed by: Wolfram|Alpha Math Team

ResourceFunction["DiagonalIntersectionsCount"][n]

returns the number of intersections of the diagonals of a regular polygon with n sides.

Examples

Basic Examples (2) 

Find the number of intersections of diagonals of a regular polygon with 17 sides:

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

Find the number of intersections of diagonals of a regular polygon with 240 sides:

In[2]:=
ResourceFunction["DiagonalIntersectionsCount"][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