Hex Number — Definition, Formula & Examples
A hex number, or centered hexagonal number, is a figurate number that represents a pattern of dots arranged in concentric hexagonal layers around a single center dot. The sequence begins 1, 7, 19, 37, 61, 91, ...
The th centered hexagonal number is defined for positive integers as , counting the total number of points in a hexagonal lattice consisting of concentric rings surrounding a central point.
Key Formula
Where:
- = The nth centered hexagonal number
- = The index of the hex number, starting at n = 1
How It Works
Start with a single dot at the center — that gives . Each successive ring adds dots around the outside. So ring 1 adds 6 dots for a total of 7, ring 2 adds 12 for a total of 19, and so on. You can verify any hex number by plugging into the formula , where counts the total number of layers including the center point.
Worked Example
Problem: Find the 5th centered hexagonal number.
Substitute: Use the formula with n = 5.
Simplify: Compute the product and add 1.
Answer: The 5th hex number is 61.
Visualization
Why It Matters
Centered hexagonal numbers appear in chemistry when modeling the close-packing of circles (like atoms in a crystalline lattice). They also show up in combinatorics and number theory — for instance, every centered hexagonal number is the difference of two consecutive cubes: .
Common Mistakes
Mistake: Confusing hex numbers with regular hexagonal numbers.
Correction: Regular hexagonal numbers use the formula n(2n − 1) and produce the sequence 1, 6, 15, 28, ... Centered hexagonal numbers place a dot at the center and build outward, giving 1, 7, 19, 37, ... They are different sequences.
