MathsReadCompetitive mathematics
Pattern recognition · integer answermedium10 min

Intersecting diagonals in a polygon

Polygon Patterns

Connect every pair of nonadjacent vertices in a convex 14-gon with a straight diagonal. How many diagonals are drawn? Submit one integer.

Learning goal: Count all pairs of vertices and remove sides.

Look for the underlying structure rather than guessing the next number. Submit only the final integer; you can open hints below as needed.

Check your answer without signing in. Sign in to save your progress.

Accepted format: a whole number such as 42 or 123456789. No commas, formulas, or source code.

Hints

Hint 1

There are n(n-1)/2 vertex pairs.

Hint 2

Remove the n neighboring pairs that are sides.

Hint 3

The number of diagonals is n(n-3)/2.

Common mistake to avoid

Assuming the first visible step stays constant without testing the full pattern.

How to approach this problem

Count all unordered pairs of vertices, then remove the polygon sides. Do not count crossings between diagonals as additional diagonals.

Worked example with different values

A hexagon has 6×5/2=15 vertex pairs, of which 6 are sides; 9 are diagonals.

Apply the same reasoning to the challenge. This example is a separate practice problem.

Learn the technique: Sequence patterns: differences, recurrences and interleaving

Report a question or explanation issue

Sequence patterns · Repeating remainders

Back to problems →