Centered Hexagonal Number Calculator

Count points in a hexagonal array with a centre and n rings, using three n times n plus one plus one.

Math and PercentUpdated 2026-11-182 min read
Centered Hexagonal Number Calculator
A whole number from 0 to 100,000.
Centered hexagonal number
...
Previous count...
Growth from previous...

What it does

Centered hexagonal numbers count points in a pattern made of a single central point surrounded by complete hexagonal rings. With no rings there is just the centre, so the first value is one. Adding one ring brings six neighbours, giving seven, and the next ring brings twelve more, giving nineteen.

The sequence begins 1, 7, 19, 37, 61 and 91. It is a centred figurate number, distinct from the ordinary polygonal hexagonal numbers that start at zero and count nested polygons sharing a vertex.

The formula is three times n times n plus one, then plus one. It comes from summing six times the ring number from one up to n and adding the centre. Because the rings grow linearly, the total grows quadratically.

This page evaluates the formula with exact integer arithmetic and shows the previous count and ratio. It does not draw the lattice, only reports how many points the pattern contains.

The ring limit is one hundred thousand, which gives a value with about eleven digits printed in full.

How to use

  1. Enter the number of rings n from 0 to 100,000.
  2. Read the centered hexagonal count in the main result box.
  3. Check the previous count and growth beside it.
  4. The default n = 5 reproduces the worked example.
  5. Try n = 3 to confirm the value 37.
  6. Note that n = 0 counts just the centre.

Formula

C(n) = 3n(n + 1) + 1
n
The number of complete rings around the centre.
C(n)
The total number of points in the pattern.

The nth ring contains six n points, so the total is one plus the sum of six times k for k from one to n. That sum is three n times n plus one, giving the formula. The value at n = 0 is one, representing the centre alone.

Worked example

Example: five rings

The page opens with n = 5.

  1. Write the formula: C(5) = 3 x 5 x 6 + 1.
  2. Multiply five by six: 30.
  3. Multiply by three: 90.
  4. Add one for the centre: 90 + 1 = 91.
  5. The tool reports 91, previous count 61, and growth 1.49x.
  6. Check the ring sum: 1 + 6 + 12 + 18 + 24 + 30 = 91.

Reference table

Centered hexagonal numbers
nC(n)PreviousGrowth
01n/an/a
1717.00x
21972.71x
337191.95x
591611.49x
103312711.22x

Limits

  • Ring counts above 100,000 are rejected to keep the output readable.
  • The growth column is rounded to two decimals.
  • The tool counts points, not lines or edges of the lattice.
  • This is the centred family, not the ordinary hexagonal polygonal numbers.

Common mistakes

  • Confusing centred hexagonal with ordinary hexagonal numbers.
  • Forgetting the central point and reporting three n times n plus one instead.
  • Using six n squared rather than six n for the outer ring.
  • Starting the count of rings at one when n = 0 is valid.
  • Assuming the growth is cubic when the formula is quadratic.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is the count with five rings?

C(5) = 3 x 5 x 6 + 1 = 91.

What is the count with three rings?

C(3) = 3 x 3 x 4 + 1 = 37.

What is the count with no rings?

C(0) = 1, the central point alone.

Questions

How is this different from hexagonal numbers?

Centred hexagons grow outward from a centre, while ordinary polygonal hexagons share a vertex.

How many points does a ring add?

The kth ring adds six times k points.

Where do these numbers appear?

In hexagonal lattices, packing problems and board games built on hex grids.

What is the growth rate?

The formula is quadratic, about three n squared for large n.

Are values exact?

Yes. Integer multiplication and addition are used.

What is the largest ring count?

One hundred thousand.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.