Centered Triangular Number Calculator

Number Theory

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

Centered triangular numbers count dots arranged in triangular layers around a single central dot. The sequence begins 1, 4, 10, 19, 31, 46, 64, 85, 109 and 136: one centre dot, then a triangle of 3 dots around it, then a shell of 6, then 9, each shell adding three more dots than the last.

The closed formula is (3n^2 - 3n + 2) / 2. It packages the shell structure into one quadratic: the nth figure is the centre dot plus the shells 3, 6, 9 and so on up to 3(n - 1). The calculator above applies that formula and shows the neighbouring terms and the running total beside every result.

Centered families differ from the plain polygonal numbers with the same name. A plain triangular number grows from a corner; a centered triangular number grows symmetrically around the middle dot, so the two sequences part company immediately - the third plain triangular number is 6, the third centered one is 10.

Worked examples

Five layers

(5)

Centered triangular number C(n)31
Previous term19
Next term46
Sum of the first n terms65

Ten layers

(10)

Centered triangular number C(n)136
Previous term109
Next term166
Sum of the first n terms505

Three layers

(3)

Centered triangular number C(n)10
Previous term4
Next term19
Sum of the first n terms15

The formula

The centered triangular number for term n is (3n^2 - 3n + 2) / 2. One way to read it: n layers contribute 3 + 6 + ... + 3(n - 1) shell dots, an arithmetic series summing to 3n(n - 1) / 2, and the centre dot adds the final 1.

Because the formula is quadratic, the terms grow like 1.5n^2. By term 10 the figure already holds 136 dots, and the calculator's steps expose the substitution so the count can be verified without drawing anything.

Building the figure layer by layer

Picture a single dot. Around it, place a triangle of 3 dots; around that, a larger triangle contributing 6 new dots; then 9, then 12. The shells are where the sequence lives: the running totals 1, 4, 10, 19, 31 are just the centre plus the shells so far.

This shell picture is the practical check on any claimed value. The gap between term n and term n + 1 must be exactly 3n, so if two neighbouring values in a table do not differ by a multiple of 3 in the right place, one of them is wrong.

The first terms

The first ten terms are 1, 4, 10, 19, 31, 46, 64, 85, 109 and 136. Their running totals are worth a look as well: the first five add to 65 and the first ten add to 505, growing roughly with the cube of the index.

Several early terms have second lives elsewhere in number theory - 10 and 136 are also triangular numbers, which is one reason the centered family rewards a close look. The calculator prints previous and next terms with each result so these overlaps are easy to spot.

A worked example

Take n = 5. Substituting into (3n^2 - 3n + 2) / 2 gives (75 - 15 + 2) / 2 = 31, matching the fifth term of the sequence. The shells check it independently: 1 + 3 + 6 + 9 + 12 = 31.

The same example anchors the running total: the first five terms, 1 + 4 + 10 + 19 + 31, add to 65. Extending to n = 10 gives the term 136 and a total of 505 - both shown in the calculator's worked examples.

Neighbours and running totals

The previous term tells you what the figure held one layer earlier and the next term previews the following shell. For centered triangular numbers the gap pattern is especially clean - 3, 6, 9, 12 - so a result can be sanity-checked against its neighbours in seconds.

Running totals answer the cumulative question: how many dots in one figure of every size up to n. That is the relevant number when the layers model something cumulative, such as rings of seats, planted rows or stacked triangular arrangements.

Centered versus plain triangular numbers

The plain triangular numbers 1, 3, 6, 10, 15 count dots in a triangle growing from a corner, adding a row each time. The centered family grows in all directions around a centre, so its shells are multiples of 3 rather than consecutive integers.

Confusing the two is the classic error with this topic. If a problem describes layers around a centre point - a fountain, a medallion, a triangular planting around a monument - the centered family is the right model even when the word centered never appears.

Where these numbers show up

Centered polygonal numbers model anything arranged in rings around a centre: triangular plantings, medallion and mosaic patterns, and layers of atoms around a central atom in cluster chemistry. They also appear in combinatorics as counts of lattice points within growing triangular regions.

In the classroom they are a standard second example of quadratic sequences after the plain polygonal numbers, precisely because the shell gaps - 3, 6, 9, 12 - are so easy to see and to sum.

Testing membership in reverse

To test a candidate x, solve (3n^2 - 3n + 2) / 2 = x, which gives n = (3 + sqrt(24x - 15)) / 6. The candidate is a centered triangular number exactly when 24x - 15 is a perfect square and n is a positive whole number. For x = 31: 24 x 31 - 15 = 729 = 27^2, so n = (3 + 27) / 6 = 5 - the fifth term, as the sequence confirms.

Membership testing matters because figurate numbers are sparse: only ten centered triangular numbers appear below 140. A discriminant check replaces a long scan, and the calculator's neighbour display confirms the verdict independently - a true member sits exactly between the previous and next terms printed with it.

One plus three times a triangular number

The centered triangular numbers hide a one-line identity: the nth term is exactly 1 + 3 x T(n - 1), where T is the ordinary triangular number. Check it at n = 5: T(4) = 10, and 1 + 3 x 10 = 31. At n = 10: T(9) = 45, and 1 + 135 = 136.

The identity is the shell picture in algebraic dress: the centre dot contributes the 1, and the three arms of the triangular shells contribute three copies of a triangular arrangement. It also means every centered triangular number is one more than a multiple of 3 - a quick filter that rejects most candidates before any square root is taken.

The centered families side by side

This page's family is the smallest of the centered polygonal numbers gathered on this site: triangular shells of 3(n - 1), pentagonal shells of 5(n - 1), heptagonal of 7(n - 1), nonagonal of 9(n - 1) and decagonal of 10(n - 1). The template never changes - centre dot plus shells - only the number of dots per shell step, which is the number of sides of the polygon being drawn. Reading two of these pages together is the fastest way to see the whole design: every formula is (kn^2 - kn + 2) / 2 with a different k, every sequence starts 1, k + 1, and every membership test is the same discriminant with a different coefficient.

The triangular member rewards the extra look because its shells grow slowest, so its terms stay small enough to draw completely for the first several layers. A student who draws the 31-dot figure at n = 5 has physically verified the formula once; the calculator then extends that verified pattern to any n with confidence.

Common mistakes

The first is using the plain triangular formula n(n + 1) / 2 for a centered problem; at n = 5 that gives 15 instead of 31. The second is miscounting the shells by forgetting the centre dot, which shifts every term down by one layer.

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

FAQs

What is a centered triangular number?

The count of dots in nested triangular layers around one central dot, given by (3n^2 - 3n + 2) / 2.

What is the 5th centered triangular number?

31 - the first five terms are 1, 4, 10, 19 and 31.

What is the 10th centered triangular number?

136.

How fast do centered triangular numbers grow?

Quadratically: each layer adds a shell of 3(n - 1) dots, so the gaps grow 3, 6, 9, 12 and so on.

What do the first 10 centered triangular numbers add to?

505.

How do centered triangular numbers differ from triangular numbers?

They add a central dot and count full surrounding shells, so the sequences differ from the plain triangular numbers from the second term on.

What is the shell added at layer n?

3(n - 1) dots - the difference between term n and term n - 1.

Where are centered triangular numbers used?

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

Is 31 a centered triangular number?

Yes - the membership formula gives n = 5 exactly, and 1 + 3 x T(4) = 31 confirms it a second way.

What is the relation to triangular numbers?

The nth centered triangular number is 1 + 3 x T(n - 1): a centre dot plus three 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.