|
|
A307681
|
|
Difference between the number of diagonals and the number of sides for a convex n-gon.
|
|
1
|
|
|
-3, -2, 0, 3, 7, 12, 18, 25, 33, 42, 52, 63, 75, 88, 102, 117, 133, 150, 168, 187, 207, 228, 250, 273, 297, 322, 348, 375, 403, 432, 462, 493, 525, 558, 592, 627, 663, 700, 738, 777, 817, 858, 900, 943, 987, 1032, 1078, 1125, 1173, 1222, 1272, 1323, 1375, 1428, 1482, 1537, 1593, 1650, 1708, 1767, 1827, 1888, 1950, 2013, 2077, 2142, 2208, 2275
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
3,1
|
|
COMMENTS
|
The number of diagonals for a convex polygon with n sides is n*(n-3)/2.
For a triangle and a quadrilateral, the number of sides is greater than the number of diagonals. For a pentagon, the number of sides is equal to the number of diagonals. For an hexagon or a polygon with more than six sides, the number of diagonals is greater than the number of sides.
|
|
LINKS
|
Eric Weisstein's World of Mathematics, Polygon
|
|
FORMULA
|
a(n) = n*(n - 5)/2.
a(n) = binomial(n-2, 2) - 3. - Yuchun Ji, Aug 12 2021
G.f.: (-1)*x^3*(3 - 7*x + 3*x^2)/(1-x)^3.
E.g.f.: (x/2)*( (x-4)*exp(x) + 4 + 3*x ). (End)
|
|
MATHEMATICA
|
|
|
PROG
|
|
|
CROSSREFS
|
Cf. A000096 (number of diagonals of an n-gon).
Cf. A006561 (number of intersections of diagonals in the interior of regular n-gon).
Cf. A007678 (number of regions in regular n-gon with all diagonals drawn).
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|