Number geometry · Numerology reference

Perfect Squares and Centered Hexagonal Numbers

Count the dots, build the rings, and discover why 169 belongs to both patterns. Explore the formulas behind square and hexagonal boards with interactive diagrams.

Two ways to grow a collection of dots

A perfect square is a whole number that can be arranged in equal rows and columns. A centered hexagonal number counts one central dot surrounded by complete six-sided rings. Both are figurate numbers: whole numbers represented by geometric arrangements.

Here, n means dots along one side, starting at 1. The number of hexagonal rings outside the center is r = n − 1. Changing n compares equal side lengths; it usually gives different totals.

Filled dots = newest layer. Open dots = previous shape. Use the slider or arrow keys to grow the shapes.

Square: 16 dotsThe filled dots show the new L-shaped border; open dots show the previous shape.
Square: 16 dots4 dots along a side
Centered hexagon: 37 dotsThe filled dots show the new outer ring; open dots show the previous shape.
Centered hexagon: 37 dots4 dots along a side · 3 outer rings

n = 4: square = 16; centered hexagon = 37. The new square border adds 7; the new hexagonal ring adds 18.

How the formulas follow from the shapes

Squares: add an odd-number border

An n by n grid contains Sₙ = n² dots. To enlarge a 3 by 3 square into a 4 by 4 square, add a row of 4 and a column of 3. The shared corner is counted once: 9 + 7 = 16.

n² − (n − 1)² = 2n − 1

The added borders have 3, 5, 7, 9, … dots. Including the starting dot, the sum of the first n odd numbers is n².

Zero is also a perfect square (0² = 0); this guide starts with 1 so each diagram has at least one dot.

Centered hexagons: add six-sided rings

Ring r has 6r dots. Its six sides each contribute r new dots when shared corners are counted only once. Add every ring to the center:

Hₙ = 1 + 6(1 + 2 + … + n − 1)
= 3n(n − 1) + 1

For n = 4, three rings add 6 + 12 + 18 dots to the center: 1 + 36 = 37.

With ring count r instead, the same formula is 1 + 3r(r + 1). A source that starts its index at 0 is counting rings, so its formula can look different while describing the same sequence.

Why consecutive cubes appear

Expand (n − 1)³ = n³ − 3n² + 3n − 1. Subtract it from n³ and the remaining expression is 3n² − 3n + 1, exactly Hₙ. For example, 8³ − 7³ = 512 − 343 = 169.

Summing consecutive differences cancels the middle terms: H₁ + H₂ + … + Hₙ = n³. For n = 4, 1 + 7 + 19 + 37 = 64. This is an identity between counts; it does not equate a flat hexagon’s physical area with a cube’s volume.

The first 15 terms, side by side

Positive squares and centered hexagonal numbers by side length
SidenSquaren²Centered hexagon3n(n − 1) + 1New ring6(n − 1)
111Center only
247+6
3919+12
41637+18
52561+24
63691+30
749127+36
864169+42
981217+48
10100271+54
11121331+60
12144397+66
13169469+72
14196547+78
15225631+84

Squares grow by successive odd numbers; hexagons grow by successive multiples of six. At the same large n, the hexagonal count is close to three times the square count because Hₙ/n² = 3 − 3/n + 1/n².

“Hexagonal” and “centered hexagonal” are different sequences

Ordinary hexagonal numbers use n(2n − 1) and begin 1, 6, 15, 28, 45. The center-and-rings arrangements shown here begin 1, 7, 19, 37, 61 and use the centered formula. The word “centered” identifies which construction is intended.

169: the same dots, two different shapes

169 = 13² = 3 × 8 × 7 + 1. A square needs 13 dots along its side; the centered hexagon needs 8. Comparing both at n = 8 would give 64 versus 169, so shared values occur at different positions in the two sequences.

Square: 169 dotsThe filled dots show the new L-shaped border; open dots show the previous shape.
Square: 169 dots13 dots along a side
Centered hexagon: 169 dotsThe filled dots show the new outer ring; open dots show the previous shape.
Centered hexagon: 169 dots8 dots along a side · 7 outer rings
First four shared values
DotsSquare sideHexagon sideHex rings
1110
1691387
32761181105104
6355441252114561455
How to find later overlaps

Write m² = 3n(n − 1) + 1, with m for the square side and n for the hexagon side. Rearranging gives 4m² − 3(2n − 1)² = 1, a Pell-type equation. Its positive integer solutions generate the overlaps.

Starting from (m, n) = (1, 1), the next pair is (7m + 12n − 6, 4m + 7n − 3). This gives (13, 8), then (181, 105), then (2521, 1456). Both new values must use the old pair. Substituting each pair into the original formulas verifies the result.

Number patterns do not make every term prime

The sequence contains primes such as 7, 19, 37, and 61, followed by 91 = 7 × 13. Later, 169 = 13² and 217 = 7 × 31 are also composite. The starting 1 is neither prime nor composite. A diagram described as “hexagon area prime” is therefore not a general prime generator.

Every centered hexagonal number has remainder 1 when divided by 6: n(n − 1) is even, so 3n(n − 1) is divisible by 6. This excludes factors 2 and 3, but it does not exclude factors such as 7 or 13.

Swipe or scroll the table to view all columns.

Decimal endings: useful filters, not proofs
PatternPossible final digitsWhat the filter cannot prove
Perfect square0, 1, 4, 5, 6, 9A number ending in 9 need not be a square: 19 is not.
Centered hexagonal1, 7, 9A number ending in 1 need not be centered hexagonal or prime: 21 is neither.

These ending-digit sets follow by substituting n = 0 through 9 into each formula and taking the last digit. The residues repeat every 10. For a primality check, test divisibility by primes up to the square root; for 91, that includes 7. Every perfect square greater than 1 is composite because its square root is a nontrivial factor.

Connecting the math to TimeMatrix boards

The Square of 9 and Gann Hexagon arrange values on different grids. A complete square ring surrounds the entire existing board; it differs from the L-shaped border used above to advance through every square number.

Complete board footprints by rings outside the center
RingsrSquare board(2r + 1)²Hexagon board1 + 3r(r + 1)
011
197
22519
34937
48161

Square board rings add 8, 16, 24, … cells, producing the odd squares 1, 9, 25, 49, … at completed rings. Hexagon rings add 6, 12, 18, … cells. In separate figurate-number terminology, “centered square numbers” means 1, 5, 13, 25, …; that is a different construction from these full square board footprints.

With center 1, ascending labels, and cell step 1, cell counts and the highest label at a completed ring coincide. A custom center, descending numbering, or a different cell step changes labels. Price translation adds another mapping. A 169-cell footprint therefore does not automatically designate a price of 169, and rotating the board changes orientation rather than its cell count.

For a practical comparison, keep the same anchor, price translation, date, and settings when switching between the boards. Inspect the number’s ring and angular position, then compare the resulting levels with historical price behavior. The counting identities are mathematics; symbolic numerology and market interpretations are hypotheses that require their own evidence.

Common questions

What is the difference between perfect squares and centered hexagonal numbers?

A perfect square counts an n by n grid: n². A centered hexagonal number counts one center dot plus complete six-sided rings: 3n(n − 1) + 1, where n is the number of dots along a side. Squares begin 1, 4, 9, 16, 25; centered hexagonal numbers begin 1, 7, 19, 37, 61.

Why is 169 both a square and a centered hexagonal number?

169 equals 13² and also 3 × 8 × 7 + 1. The same 169 dots can form a 13 by 13 square or a centered hexagon with 8 dots along each side and 7 rings around its center. The two shapes use different side lengths.

Are all centered hexagonal numbers prime?

No. For example, 91 = 7 × 13, 169 = 13 × 13, and 217 = 7 × 31. The starting value 1 is neither prime nor composite. A geometric arrangement or a final digit cannot establish primality.

How are centered hexagonal numbers related to cubes?

The identity n³ − (n − 1)³ = 3n(n − 1) + 1 makes each centered hexagonal number the difference of consecutive cubes. Adding the first n centered hexagonal numbers gives n³; for example, 1 + 7 + 19 + 37 = 64 = 4³.

How do these numbers relate to Square of 9 and Hexagon boards?

A complete square board with r rings contains (2r + 1)² cells; a complete hexagonal board with r rings contains 1 + 3r(r + 1) cells. These are cell counts. Custom centers, cell steps, descending labels, and price translation can change the displayed values without changing the geometry.

References and further reading

The diagrams and worked derivations on this page are original counting illustrations. Compare the sequence tables with the OEIS centered hexagonal sequence, A003215 and square centered hexagonal sequence, A006051. These references index the center at ring 0; this guide uses side length n = r + 1.

For related terminology, see Wolfram MathWorld’s Hex Number and Hexagonal Number entries.

Back to Zodiac, Planetary Bodies and Numerology