Centered Nonagonal Number Calculator

Number Theory

Centered nonagonal number C(n)91
Previous term55
Next term136
Sum of the first n terms185
How this was calculated
  1. The centered nonagonal number for term n is (9n^2 - 9n + 2) / 2. Substituting n = 5 gives the term below.
  2. The centred figure is one centre dot plus 9 triangular layers: 9 x 5 x 4 / 2 + 1 = 91. Layer i adds a shell of 9 x (i - 1) dots.
  3. Term 5 of the centered nonagonal numbers is 91. The term before it is 55 and the term after it is 136.
  4. Adding the first 5 terms gives 185. Each new layer of dots adds a shell around the previous figure, which is why the terms grow quadratically.

The centered nonagonal numbers count dots arranged in nonagonal layers around a single central dot. The sequence begins 1, 10, 28, 55, 91, 136, 190, 253, 325 and 406. Each new layer is a shell of 9(n - 1) dots wrapped around everything inside it, and the calculator above returns the term for any index n together with its neighbours and the running total.

The closed formula is (9n^2 - 9n + 2) / 2: the centre dot plus the shells 9, 18, 27 and so on, summed in one quadratic. That replaces drawing the figure and counting dots by hand, which stops being practical quickly - by the tenth layer the figure already holds hundreds of dots.

Enter an index n and the calculator applies the formula in four visible steps: it states the formula, works the arithmetic, reads the term, and adds up the run of terms from the first to the nth. The previous and next terms are shown alongside, which makes it easy to check a value against its neighbours or to extend the sequence by hand.

Worked examples

Five layers

(5)

Centered nonagonal number C(n)91
Previous term55
Next term136
Sum of the first n terms185

Ten layers

(10)

Centered nonagonal number C(n)406
Previous term325
Next term496
Sum of the first n terms1,495

Seven layers

(7)

Centered nonagonal number C(n)190
Previous term136
Next term253
Sum of the first n terms511

The formula

The centered nonagonal number for term n is (9n^2 - 9n + 2) / 2. Read it as 1 + 9 + 18 + ... + 9(n - 1): an arithmetic series of shells plus the centre dot. Summing that series is exactly where the quadratic comes from.

Because the formula is quadratic, the terms grow in proportion to n squared. Membership questions run in reverse: solve the quadratic for n and check for a positive whole number to test whether a given count can form one of these figures.

Building the figure layer by layer

Picture a single dot. Around it, place a shell of 9 dots in the shape of the polygon; around that, a shell of 18; then 27. The shells are where the sequence lives: each partial total - centre plus shells so far - is one term of the sequence.

This shell picture is the practical check on any claimed value. The gap between term n and term n + 1 must be exactly 9n dots, so neighbouring values in a table that do not differ by the right multiple are immediately suspect.

The first terms

The first ten terms are 1, 10, 28, 55, 91, 136, 190, 253, 325 and 406. The gaps between them - 9, 18, 27, 36 and so on - are the cleanest signature of a centered family: perfectly regular shell growth around the centre.

The running totals grow faster, roughly with the cube of the index, because each term added to the sum is itself quadratic. The calculator reports the sum of the first n terms beside every value so both growth rates are visible at once.

A worked example

Take n = 5. Substituting into (9n^2 - 9n + 2) / 2 gives the term 91. The calculator shows the substitution in its second step rather than jumping to the answer, so the arithmetic can be followed and checked.

The same example gives a running total: the first 5 terms add to 185. Extending the index by one must raise the total by exactly the next term - a quick consistency check that catches most slips.

Neighbours and running totals

Every result comes with the previous term and the next term. The previous term is what the figure held one layer earlier; the next term previews the following shell. Together they bracket the answer and expose the local gap, which is the shell count for the layer being added.

Running totals answer a different question: not how many dots one figure holds, but how many dots a whole set of figures, one of each size up to n, holds in total. That is the quantity that matters when the figures model stacked or cumulative quantities.

Centered versus plain

The plain nonagonal numbers follow (7n^2 - 5n) / 2 from a corner-grown figure. Centered nonagonal numbers are also called centered enneagonal numbers - the two names describe the same nine-sided family and the same sequence.

The tell-tale sign in a problem statement is symmetry around a centre: a medallion, a fountain, a planting around a monument. Whenever the arrangement grows outward in all directions from one middle dot, the centered family is the right model, whether or not the word centered appears.

Where these numbers show up

Centered polygonal numbers model anything arranged in rings around a centre: plantings and seating around a focal point, medallion and mosaic patterns, and shells of atoms around a central atom in cluster chemistry. They also count lattice points inside growing polygonal regions in combinatorics.

In teaching, the centered families are a gentle second step after the plain polygonal numbers: the shells are visible, the gaps are perfectly regular, and the formula can be derived by summing an arithmetic series in one line.

Testing membership in reverse

To test a candidate x, solve (9n^2 - 9n + 2) / 2 = x, which gives n = (9 + sqrt(72x + 9)) / 18. For x = 91: 72 x 91 + 9 = 6561 = 81^2, so n = (9 + 81) / 18 = 5 - the fifth centered nonagonal number. For x = 100 the discriminant is 7209, not a perfect square, so 100 is not in the family.

Membership testing matters because centered figurate numbers are sparse: only ten terms of any one family appear below a few hundred. A discriminant check replaces a long scan of the sequence, and the calculator's neighbour display gives an independent confirmation - a true member sits exactly between the previous and next terms printed with it.

One plus k times a triangular number

Every centered family on this site hides the same one-line identity: the nth term is exactly 1 + 9 x T(n - 1), where T is the ordinary triangular number. The centre dot contributes the 1, and the 9 arms of the polygonal shells each contribute one triangular arrangement of dots.

The identity is more than a shortcut. It shows the centered families are all built from the same triangular brick, differing only in how many arms the brick is copied into - which is why their formulas share one template, (kn^2 - kn + 2) / 2, with k the only choice to make. It also gives a fast filter: every term of this family is one more than a multiple of the shell step pattern, so most candidates can be rejected before any square root is taken.

A note on the nonagonal connection

The centered nonagonal identity, term n = 1 + 9 x T(n - 1), checks at n = 6: T(5) = 15, and 1 + 135 = 136, matching the sequence. Nine arms is the richest shell structure among the centered families here, and the sequence shows it: by term 10 the figure holds 406 dots, the largest tenth term of the centered group on this site.

Common mistakes

The most frequent slip is using the plain polygonal formula for a centered problem - the two families share a name but count different arrangements and diverge from the second term onward. A second slip is forgetting the centre dot, which shifts every term down by one layer.

A third mistake is an index slip: the first shell belongs to n = 2, not n = 1. Checking a result against its neighbours, as this calculator does automatically, catches all three errors at once.

FAQs

What is the formula?

The centered nonagonal number for term n is (9n^2 - 9n + 2) / 2.

What is the term at n = 5?

91. The calculator shows the substitution step by step.

What are the first ten terms?

1, 10, 28, 55, 91, 136, 190, 253, 325 and 406.

How fast do the terms grow?

Quadratically: each layer adds a shell of 9(n - 1) dots, so the gaps grow in equal steps.

What does the sum of the first n terms mean?

It is the total dot count of one figure of every size from 1 up to n added together - the calculator reports it beside each term.

How can I check a value?

Compare it with its neighbours: the term must exceed the previous term by exactly one shell and fall short of the next term by the next shell.

Does n start at 0 or 1?

At 1 in this calculator, matching the convention that the first figure is the single centre dot with value 1.

Where are centered figurate numbers used?

In ringed arrangements around a centre, lattice-point counts and as a teaching example of quadratic sequences.

Is 91 a centered nonagonal number?

Yes - solving the formula for n gives exactly n = 5, and the identity 1 + 9 x T(n - 1) confirms it a second way.

What is the triangular identity for centered numbers?

The nth term equals 1 + 9 x T(n - 1): a centre dot plus 9 triangular arms.

Sources

Related calculators

Continued Fraction Calculator
Expand a decimal into its continued fraction and read off the convergents — the best possible rational approximations, from 22/7 up to the legendary 355/113 for pi.
Logit Calculator
The logit of a probability: the natural log of the odds, the scale on which logistic regression is linear.
Sphenic Number Calculator
Test whether a number is sphenic - the product of exactly three distinct primes - with its factorization and the next sphenic number.