Pentagonal Pyramidal Number Calculator

Count a stack whose layers are pentagonal numbers, from n squared times n plus one over two.

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

What it does

Pentagonal pyramidal numbers count a stack built from pentagonal layers. The nth term is the sum of the first n pentagonal numbers. The sequence begins 0, 1, 6, 18, 40 and 75, and it follows a compact cubic formula.

This family is part of the wider group of polygonal pyramidal numbers, where the base shape determines the layer count. Replacing pentagons by squares gives the square pyramidal numbers, and replacing them by hexagons gives another related family.

The closed form is n squared times n plus one, divided by two. The division is always exact because one of n and n plus one is even. The tool checks exactness before returning a value.

This page computes the term with exact integer arithmetic and reports the previous value and ratio beside it. It does not draw the stack, only reports how many points it would have.

The layer limit is one hundred thousand, which keeps the printed value around fifteen digits.

How to use

  1. Enter the number of layers n from 0 to 100,000.
  2. Read the pentagonal pyramidal number in the main result box.
  3. Check the previous term and growth beside it.
  4. The default n = 8 reproduces the worked example.
  5. Try n = 5 to confirm the value 75.
  6. Compare with square pyramidal numbers at the same layer count.

Formula

P(n) = n^2 (n + 1) / 2
n
The number of pentagonal layers.
P(n)
The total number of points in the stack.

The formula comes from summing the pentagonal numbers k times five k minus three over two from k equals one to n. The result simplifies to n squared times n plus one over two. The value at n = 0 is zero.

Worked example

Example: eight layers

The page opens with n = 8.

  1. Compute n squared: 8 x 8 = 64.
  2. Compute n plus one: 9.
  3. Multiply: 64 x 9 = 576.
  4. Divide by two: 576 / 2 = 288.
  5. The tool reports 288, previous term 196, and growth 1.47x.
  6. Check the previous value: 49 x 8 / 2 = 196.

Reference table

Pentagonal pyramidal numbers
nP(n)PreviousGrowth
00n/an/a
110n/a
2616.00x
440182.22x
575401.88x
82881961.47x

Limits

  • Layer counts 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.
  • Only the standard polygonal pyramid family is used.

Common mistakes

  • Using the pentagonal number formula instead of the pyramidal sum.
  • Forgetting to divide by two.
  • Using n times n plus one squared by mistake.
  • Expecting quadratic growth when the formula is cubic.
  • Starting the sequence at one without adjusting the index.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is P(8)?

P(8) = 64 x 9 / 2 = 288.

What is P(5)?

P(5) = 25 x 6 / 2 = 75.

What is P(2)?

P(2) = 4 x 3 / 2 = 6.

Questions

How are the layers built?

Each layer is an ordinary pentagonal number.

How does this relate to square pyramidal numbers?

Both are polygonal pyramids, with pentagons or squares as the layer shape.

Is the division always exact?

Yes, and the tool checks it before returning a value.

What is the growth rate?

Cubic, because the formula has three factors in n.

Are values exact?

Yes. Integer arithmetic only is used.

What layer count 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.