The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Ask Dr. Math, Polygon diagonals
Eric Weisstein's World of Mathematics, Polygon
Eric Weisstein's World of Mathematics, Polygon diagonal
FORMULA
a(n) = n*(n - 5)/2.
a(n) = binomial(n-2, 2) - 3. - Yuchun Ji, Aug 12 2021
From G. C. Greubel, Jul 31 2022: (Start)
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
Table[(n(n-5))/2, {n, 3, 80}] (* Harvey P. Dale, Jan 23 2021 *)
PROG
(Magma) [n*(n-5)/2: n in [3..80]]; // G. C. Greubel, Jul 31 2022
(Sage) [n*(n-5)/2 for n in (3..80)] # G. C. Greubel, Jul 31 2022
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).
Sequence in context: A231132 A290327 A131732 * A331922 A198826 A088161
KEYWORD
sign,easy
AUTHOR
Bernard Schott, Apr 21 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 18 10:02 EDT 2024. Contains 373479 sequences. (Running on oeis4.)