Centered Pentagonal Number Calculator

Count points in a pentagonal pattern built from a centre, using five n squared plus five n plus two over two.

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

What it does

Centered pentagonal numbers count dots in a pattern that starts with a centre and adds pentagonal layers. The sequence begins 1, 6, 16, 31, 51 and 76. Each new layer adds five times the layer number, so the total grows quadratically.

The closed form is five n squared plus five n plus two, divided by two. This is always an integer because the numerator is even for every whole n. The tool verifies exactness before returning a value.

These numbers are sometimes called crystal ball sequence values, because they count the spheres in a centered pentagonal arrangement viewed in a particular lattice. They differ from ordinary pentagonal numbers, which start at zero and share a vertex.

This page evaluates the formula with exact integer arithmetic and shows the previous term and ratio beside the answer. It does not draw the layers.

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

How to use

  1. Enter an index n from 0 to 100,000.
  2. Read the centered pentagonal number in the main result box.
  3. Check the previous term and growth beside it.
  4. The default index 5 reproduces the worked example.
  5. Try n = 4 to confirm the value 51.
  6. Remember that index 0 gives the centre alone.

Formula

C(n) = (5n^2 + 5n + 2) / 2
n
The index of the centered pentagonal pattern.
C(n)
The number of points in the pattern.

The kth layer adds five k points, so the total is one plus five times the sum from one to n. That sum is n times n plus one over two, which leads to the formula. The value at n = 0 is one, representing the centre.

Worked example

Example: index 5

The page opens with n = 5.

  1. Compute five n squared: 5 x 25 = 125.
  2. Compute five n: 5 x 5 = 25.
  3. Add two: 125 + 25 + 2 = 152.
  4. Divide by two: 152 / 2 = 76.
  5. The tool reports 76, previous term 51, and growth 1.49x.
  6. Check the layer sum: 1 + 5 + 10 + 15 + 20 + 25 = 76.

Reference table

Centered pentagonal numbers
nC(n)PreviousGrowth
01n/an/a
1616.00x
21662.67x
331161.94x
451311.65x
576511.49x

Limits

  • Indices above 100,000 are rejected to keep the output readable.
  • The growth column is rounded to two decimals.
  • The tool gives counts, not drawings of the layers.
  • This is the centred family, not ordinary pentagonal numbers.

Common mistakes

  • Confusing centred with ordinary pentagonal numbers.
  • Using five n plus two without the squared term.
  • Forgetting to divide by two.
  • Assuming the growth is cubic when the formula is quadratic.
  • Starting the sequence at zero with the value zero instead of one.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is C(5)?

C(5) = (125 + 25 + 2) / 2 = 76.

What is C(4)?

C(4) = (80 + 20 + 2) / 2 = 51.

What is C(0)?

C(0) = 1.

Questions

What is a crystal ball sequence?

A count of spheres in a layered lattice, of which this family is one example.

How is this different from pentagonal numbers?

Centred pentagonal numbers grow outward from a centre instead of sharing a vertex.

How many points does each layer add?

Layer k adds five times k points.

Is the division always exact?

Yes, and the tool checks it before returning the result.

Are values exact?

Yes. Integer arithmetic is used.

What index range is accepted?

Zero through 100,000.

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.