Polygonal Numbers
Summary: Polygonal numbers are the partial sums of arithmetical progressions starting at 1; each class (triangular, square, pentagonal, hexagonal, …) corresponds to a fixed common difference, and a single general formula covers all cases.
Sources: chapter-1.3.5, chapter-1.4.7, chapter-2.0.4
Last updated: 2026-05-05
Origin
Take an arithmetical progression starting at 1 with common difference (where is the number of sides). The cumulative sums give the polygonal numbers for that type.
The main cases
| Name | (diff) | (sides) | -th term | Sequence |
|---|---|---|---|---|
| Triangular | ||||
| Square | ||||
| Pentagonal | ||||
| Hexagonal | ||||
| Heptagonal |
General formula
For an -gon with side :
Setting recovers the natural numbers ( itself). Setting gives triangular numbers. Setting gives , etc.
Notable relationships
- All hexagonal numbers are also triangular: the hexagonal sequence coincides with the odd-indexed triangular numbers
- The sum of the first odd numbers equals (the -th square number), linking square numbers to the progression
- The -th triangular number also gives the sum of all natural numbers from 1 to .
Extracting the root of a polygonal number (inverse problem)
Given a polygonal number , finding its root requires solving a quadratic equation. Applying completing-the-square to each class gives:
| Polygon | Root formula | Integrality condition |
|---|---|---|
| Triangle | a perfect square | |
| Square | a perfect square | |
| Pentagon | a perfect square | |
| Hexagon | a perfect square | |
| Heptagon | a perfect square | |
| Octagon | a perfect square |
The triangular and hexagonal conditions are identical, confirming that every hexagonal number is also triangular. The general -gonal root formula is:
See ch1.4.7-extraction-roots-polygonal-numbers for details and worked examples.
Triangular Numbers that are also Perfect Squares (§49)
A triangular number is also a perfect square iff is a square, i.e. must be a square. Setting and solving (Rule 2 of Chapter 2.0.4):
| 3 | 2 | 8 | 36 | 6 |
| 7 | 5 | 49 | 1225 | 35 |
| 17 | 12 | 288 | 41616 | 204 |
(source: chapter-2.0.4, §49). The sequence of such values (1, 8, 49, 288, …) is infinite.