Stella Octangula Number Calculator
Number Theory
- The stella octangula number for term n is n(2n^2 - 1). Substituting n = 5 gives the term below.
- 5 x (2 x 5^2 - 1) = 245. The stella octangula is the only stellation of the octahedron: two interpenetrating tetrahedra.
- Term 5 of the stella octangula numbers is 245. The term before it is 124 and the term after it is 426.
- Adding the first 5 terms gives 435. The counts grow cubically because the figure is a three-dimensional star.
The stella octangula numbers lift figurate counting into three dimensions: instead of dots in a flat pattern, they count spheres (or unit cubes) in a growing solid. The sequence begins 1, 14, 51, 124, 245, 426, 679, 1016, 1449 and 2042. The calculator above returns the term for any layer count n together with its neighbours and the running total.
The closed formula is n(2n^2 - 1). Three-dimensional figurate numbers grow cubically rather than quadratically, because each new layer is a surface whose size itself grows with n squared - which is why the totals on this page climb so much faster than the flat families.
Enter the layer count 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, making it easy to check a value against its neighbours or extend the sequence by hand.
Worked examples
Fifth stella octangula number
(5)
| Stella octangula number S(n) | 245 |
| Previous term | 124 |
| Next term | 426 |
| Sum of the first n terms | 435 |
Seventh stella octangula number
(7)
| Stella octangula number S(n) | 679 |
| Previous term | 426 |
| Next term | 1,016 |
| Sum of the first n terms | 1,540 |
Eighth stella octangula number
(8)
| Stella octangula number S(n) | 1,016 |
| Previous term | 679 |
| Next term | 1,449 |
| Sum of the first n terms | 2,556 |
The formula
The stella octangula number for layer count n is n(2n^2 - 1). The cubic growth is the key fact: doubling the layers multiplies the term by roughly eight once n is moderately large.
Membership questions run in reverse, as with the flat families: solve the cubic for n and check whether the answer is a positive whole number. If it is not, the count cannot be assembled into one of these solids with complete layers.
Building the solid layer by layer
The stella octangula is the three-dimensional star formed by two interlocking tetrahedra - the only stellation of the octahedron. Its figurate numbers count the spheres in that star-shaped solid, built outward layer by layer from a single centre sphere.
This layer view explains the shape of the formula. The difference between consecutive terms is the size of one added layer - itself a two-dimensional figurate count - and the calculator's steps surface that growth through the previous and next terms.
A final structural note: because the solid is two tetrahedra fused, its count can be cross-checked from the tetrahedral side - the star's points contribute tetrahedral pieces around an octahedral core. Any derivation that respects that decomposition lands on the same formula, which is the geometric reason the calculator's closed form and a layer-by-layer count can be made to agree term by term.
The first terms
The first terms are 1, 14, 51, 124, 245, 426, 679, 1016, 1449 and 2042. Reading across them shows the cubic signature at once: the gaps between terms grow quadratically, unlike the flat families where the gaps grow only linearly.
The running totals grow faster still, roughly with the fourth power of n, because each term added to the sum is itself cubic. The calculator reports the sum of the first n terms beside every value so both rates are visible.
A worked example
Take n = 5. Substituting into n(2n^2 - 1) gives the term 245. 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 435. Extending the layer count 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 the solid one layer smaller; the next term previews the solid one layer larger. Together they bracket the answer and expose the size of the layer being added.
Running totals answer the cumulative question: how many unit spheres in one solid of every size from 1 up to n combined. That is the relevant number when the solids model stacked stock - cannonballs, oranges, ball bearings - at several sizes.
Relations to other sequences
The family hides a memorable coincidence: its eighth term is 1016, not the rounder 1000 a quick memory might suggest - the sequence passes close to a thousand without landing on it. The family also relates to the octahedral numbers, since the stella octangula is the octahedron's stellation.
Three-dimensional figurate numbers are where the figurate idea meets solid geometry: each family is a discrete volume, and its layer differences are the flat figurate numbers of the corresponding cross-section. That nesting - solids built from flat layers built from shells - is the unifying picture behind every page in this group.
Where these numbers show up
Stacking problems are the natural home of these sequences: how many spheres in a pyramid or octahedral stack, how many unit cubes in a stepped solid, how inventory grows when each delivery adds a complete layer. They also appear in crystallography, where close-packed structures grow in exactly these layer patterns.
In teaching, the 3D families are the standard first example of cubic sequences, and the contrast with the quadratic flat families makes the growth-rate idea concrete: same construction, one dimension more, one power higher.
Testing membership in reverse
For the stella octangula formula n(2n^2 - 1), the layer count is close to the cube root of x / 2. For x = 245 that estimate is about 4.97, pointing at n = 5 - and substituting n = 5 returns exactly 245, confirming membership. For x = 1000 the estimate points just below n = 8, and n = 8 gives 1016, not 1000 - the famous near-miss of this sequence.
Membership testing matters because three-dimensional figurate numbers are very sparse: only ten terms of a family appear below a few thousand. A size estimate followed by one exact check replaces a long scan, and the calculator's neighbour display confirms the verdict - a true member sits exactly between the previous and next terms printed with it.
Discrete volumes
The stella octangula solid - two interlocking tetrahedra - has a discrete volume counted by this sequence: the number of spheres in the star-shaped stack. Star polyhedra sit at the decorative end of geometry, but their counting problems are as exact as any pyramid's, and the near-miss at 1000 shows how deceptive a smooth-looking cubic can be.
That is the unifying idea of the 3D figurate families: each is a volume computed by counting instead of measuring. The layer differences are the flat figurate numbers of the cross-section, the terms are the accumulated volumes, and the running totals count whole sets of solids - three levels of the same construction, which is why these pages report all three quantities side by side.
The solid behind the sequence
The stella octangula was Kepler's discovery: take a regular octahedron and extend its faces until they meet, and the star that emerges is exactly two tetrahedra interpenetrating, each one's vertices poking through the other's faces. It is the only stellation of the octahedron, and it has been a decorative motif - in jewellery, architecture and art - ever since.
Its figurate numbers inherit that double nature: the count can be built as an octahedral core dressed with tetrahedral points, which is one route to the formula n(2n^2 - 1). A sequence whose solid is two simpler solids fused is bound to have a formula with two visible ingredients, and this one does.
Common mistakes
The most frequent slip is reaching for a flat formula - a quadratic - for a solid count; by n = 5 the error is already large. A second slip is an off-by-one in the layer count, counting the apex sphere as layer 0 in one place and layer 1 in another.
A third mistake is trusting a term without checking its neighbours. The gap to the previous term must equal the size of the layer that was added; if it does not, the arithmetic has gone wrong, and the calculator's four steps make the check immediate.
FAQs
What is the formula?
The stella octangula number for layer count n is n(2n^2 - 1).
What is the term at n = 5?
245. The calculator shows the substitution step by step.
What are the first terms?
1, 14, 51, 124, 245, 426, 679, 1016, 1449 and 2042.
How fast do the terms grow?
Cubically: each added layer is a surface whose size grows with n squared.
What does the sum of the first n terms mean?
The total count of one solid of every size from 1 up to n combined - the calculator reports it beside each term.
How can I check a value?
Compare it with its neighbours: the gap to the previous term must equal the size of the layer added at that step.
Does n start at 0 or 1?
At 1 in this calculator: the first solid is a single sphere or point with value 1.
Where are 3D figurate numbers used?
In stacking and packing counts, crystallography layer patterns, and as the standard example of cubic sequences.
Is 245 a stella octangula number?
Yes - the size estimate points to n = 5, and substituting that index into the formula returns exactly 245.
Why do 3D figurate numbers grow cubically?
Each added layer is a surface whose size grows with n squared, so the accumulated count grows with n cubed.