Rhombic Dodecahedral Number Calculator
Find the rhombic dodecahedral number as the difference between two consecutive fourth powers.
What it does
Rhombic dodecahedral numbers count cells in a cluster shaped like a rhombic dodecahedron. They are also known as Galileo numbers, because the sequence appears in early work on the growth of such patterns. The first few values are 1, 15, 65, 175 and 369.
The formula is remarkably simple: the nth term equals n to the fourth power minus n minus one to the fourth power. Expanding that difference gives a cubic polynomial, which explains the growth rate of the sequence.
This number also counts the spheres in successive shells of a close packed lattice viewed through its rhombic dodecahedral cells, which is why it appears in crystal structure and cluster chemistry.
This page evaluates the difference of powers with exact integer arithmetic and reports the previous term and ratio beside the result. It gives counts only, not a drawing of the cells.
The index limit is one hundred thousand, which keeps the printed value around fifteen digits.
How to use
- Enter an index n from 1 to 100,000.
- Read the rhombic dodecahedral 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 175.
- Verify a small term by subtracting two fourth powers.
Formula
- n
- The index of the rhombic dodecahedral shell.
- R(n)
- The number of cells in that shell.
Expanding the fourth powers gives R(n) equals four n cubed minus six n squared plus four n minus one. The first value at n = 1 is one. The formula is cubic even though it is written as a difference of fourth powers, because the leading quartic terms cancel.
Worked example
Example: index 5
The page opens with n = 5.
- Compute n to the fourth: 5 x 5 x 5 x 5 = 625.
- Compute n minus one: 4.
- Compute four to the fourth: 256.
- Subtract: 625 - 256 = 369.
- The tool reports 369, previous term 175, and growth 2.11x.
- Check the previous value: 4^4 - 3^4 = 256 - 81 = 175.
Reference table
| n | R(n) | Previous | Growth |
|---|---|---|---|
| 1 | 1 | n/a | n/a |
| 2 | 15 | 1 | 15.00x |
| 3 | 65 | 15 | 4.33x |
| 4 | 175 | 65 | 2.69x |
| 5 | 369 | 175 | 2.11x |
| 6 | 671 | 369 | 1.82x |
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 cells.
Common mistakes
- Using n cubed minus n minus one cubed.
- Forgetting to subtract the second fourth power.
- Starting the index at zero and expecting one there.
- Assuming the formula is quartic when the leading terms cancel.
- Rounding intermediate powers instead of computing exactly.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is R(5)?
R(5) = 625 - 256 = 369.
What is R(4)?
R(4) = 256 - 81 = 175.
What is the expanded cubic form?
R(n) = 4n^3 - 6n^2 + 4n - 1.
Questions
Why are these called Galileo numbers?
The sequence appears in Galileo's early study of figurate growth patterns.
How does the formula simplify?
The fourth powers cancel their leading terms, leaving the cubic four n cubed minus six n squared plus four n minus one.
Where are these used?
In cluster counting and the study of rhombic dodecahedral cells in packing problems.
What is the growth rate?
Cubic, with leading term four n cubed.
Are values exact?
Yes. Integer powers are computed exactly.
What index range is accepted?
One through 100,000.
Sources
- OEIS A005917, rhombic dodecahedral numbers
- Journal of Integer Sequences: Some Number Arrays Related to Pascal and Lucas Triangles