OFFSET
3,5
LINKS
Paolo Xausa, Table of n, a(n) for n = 3..10000
Bjorn Poonen and Michael Rubinstein, The number of intersection points made by the diagonals of a regular polygon, arXiv:math/9508209 [math.MG], 1995-2006.
Steven E. Sommars and Tim Sommars, The Number of Triangles Formed by Intersecting Diagonals of a Regular Polygon, Journal of Integer Sequences, Vol. 1 (1998), Article 98.1.5.
Paolo Xausa, Illustration of a(9).
MATHEMATICA
A363173list[nmax_]:=Module[{d}, d[m_, n_]:=Boole[Divisible[n, m]]; Table[Binomial[n, 6]-If[EvenQ[n], ((1/8n^2-9/8n+7/4)d[2, n]+3/4d[4, n]+(6n-106/3)d[6, n]-33d[12, n]-36d[18, n]-24d[24, n]+96d[30, n]+72d[42, n]+264d[60, n]+96d[84, n]+48d[90, n]+96d[120, n]+48d[210, n])n, 0], {n, 3, nmax}]]; A363173list[50]
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo Xausa, May 19 2023
STATUS
approved