Centered Tetrahedral Number Calculator
Count points in a tetrahedral pattern grown from a centre using two n plus one times a quadratic over three.
What it does
Centered tetrahedral numbers count dots in a pattern that starts with a central point and adds tetrahedral layers around it. The sequence begins 1, 5, 15, 35, 69 and 121. Each term is given by a cubic formula with a single division by three.
This family is the centred counterpart of the ordinary tetrahedral numbers, which stack triangular layers from a corner. Growing around a centre produces different values, but both are cubic figurate families tied to the four faced solid.
The closed form is two n plus one times n squared plus n plus three, divided by three. The numerator is divisible by three for every whole n, which the tool checks before returning a value.
This page evaluates the formula with exact integer arithmetic and reports 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 fifteen digits.
How to use
- Enter an index n from 0 to 100,000.
- Read the centered tetrahedral 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 69.
- Compare with ordinary tetrahedral numbers at the same index.
Formula
- n
- The index of the centred tetrahedral figure.
- C(n)
- The number of points in the pattern.
The formula is cubic with leading term two thirds of n cubed. The numerator is always divisible by three. The value at n = 0 is one, the central point, and at n = 1 it is five.
Worked example
Example: index 5
The page opens with n = 5.
- Compute two n plus one: 11.
- Compute n squared plus n plus three: 25 + 5 + 3 = 33.
- Multiply: 11 x 33 = 363.
- Divide by three: 363 / 3 = 121.
- The tool reports 121, previous term 69, and growth 1.75x.
- Check the previous value: 9 x 23 / 3 = 69.
Reference table
| n | C(n) | Previous | Growth |
|---|---|---|---|
| 0 | 1 | n/a | n/a |
| 1 | 5 | 1 | 5.00x |
| 2 | 15 | 5 | 3.00x |
| 3 | 35 | 15 | 2.33x |
| 4 | 69 | 35 | 1.97x |
| 5 | 121 | 69 | 1.75x |
Limits
- 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.
- Only the centred tetrahedral family starting at index zero is used.
Common mistakes
- Using ordinary tetrahedral numbers instead of the centred ones.
- Using n squared plus n plus two in the factor.
- Forgetting to divide by three.
- Expecting quadratic growth from a cubic formula.
- Rounding the division instead of checking exactness.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is C(5)?
C(5) = 11 x 33 / 3 = 121.
What is C(4)?
C(4) = 9 x 23 / 3 = 69.
What is C(0)?
C(0) = 1.
Questions
How is this different from tetrahedral numbers?
The centred family grows around a point, while ordinary tetrahedral numbers stack layers from a corner.
Is the division always exact?
Yes, and the tool checks it before returning a value.
What is the growth rate?
Cubic, with leading term two thirds of n cubed.
What is the value at one?
C(1) = 5.
Are values exact?
Yes. Integer arithmetic is used.
What index range is accepted?
Zero through 100,000.