Centered Nonagonal Number Calculator
Count points in a nine sided pattern grown from a centre, using three n minus one times three n minus two over two.
What it does
Centered nonagonal numbers count dots in a pattern that begins with one central point and adds nine sided layers around it. The sequence starts 1, 10, 28, 55, 91 and 136. Each layer adds nine times the layer number, so the total grows quadratically.
This family is part of the centred polygonal group, alongside the centred triangular, square, pentagonal, hexagonal, heptagonal, octagonal and decagonal cases. The coefficient of the quadratic term rises with the number of sides.
The closed form is three n minus one times three n minus two, divided by two. It looks different from the usual centred formula but is equivalent to nine n times n minus one over two, plus one. The tool verifies exactness before returning a value.
This page computes the term with exact integer arithmetic and shows the previous term and ratio beside the answer. It gives counts only, not a drawing of the layers.
The index limit is one hundred thousand, which keeps the printed value around eleven digits.
How to use
- Enter an index n from 1 to 100,000.
- Read the centered nonagonal number in the main result box.
- Check the previous term and growth beside it.
- The default index 5 reproduces the worked example.
- Try n = 4 to confirm the value 55.
- Remember that index 1 is the centre alone.
Formula
- n
- The index, starting at one for the centre.
- C(n)
- The number of points in the centred nine sided pattern.
The kth layer adds nine k points, so the total is one plus nine times the sum from one to n minus one. That expression simplifies to the product of three n minus one and three n minus two, divided by two. The value at n = 1 is one.
Worked example
Example: index 5
The page opens with n = 5.
- Compute three n minus one: 15 - 1 = 14.
- Compute three n minus two: 15 - 2 = 13.
- Multiply: 14 x 13 = 182.
- Divide by two: 182 / 2 = 91.
- The tool reports 91, previous term 55, and growth 1.65x.
- Check the layer sum: 1 + 9 + 18 + 27 + 36 = 91.
Reference table
| n | C(n) | Previous | Growth |
|---|---|---|---|
| 1 | 1 | n/a | n/a |
| 2 | 10 | 1 | 10.00x |
| 3 | 28 | 10 | 2.80x |
| 4 | 55 | 28 | 1.96x |
| 5 | 91 | 55 | 1.65x |
| 6 | 136 | 91 | 1.49x |
Limits
- The index starts at one, so zero is rejected.
- 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.
Common mistakes
- Starting the index at zero instead of one.
- Using three n plus one or plus two in the factors.
- Forgetting to divide by two.
- Confusing centred with ordinary nonagonal numbers.
- Expecting cubic growth from a quadratic formula.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is C(5)?
C(5) = 14 x 13 / 2 = 91.
What is C(4)?
C(4) = 11 x 10 / 2 = 55.
What is C(1)?
C(1) = 2 x 1 / 2 = 1.
Questions
What is the centred nonagonal family?
A centre plus layers whose sizes follow the nine sided count.
How many points does each layer add?
Layer k adds nine times k points.
Is the same value reachable by another formula?
Yes, nine n times n minus one over two plus one gives the same result.
How fast do they grow?
Quadratically, like nine halves of n squared.
Are values exact?
Yes. Integer arithmetic is used.
What index range is accepted?
One through 100,000.