Heptagonal Number — Definition, Formula & Example
A heptagonal number is a number of dots that can be arranged as a seven-sided figure, where each new layer adds a bigger heptagon around a shared corner. The sequence starts 1, 7, 18, 34, 55, 81, ...
For a positive integer , the th heptagonal number is . It is the case of the polygonal number formula . Consecutive terms differ by for , so the sequence has a constant second difference of 5.
Key Formula
Where:
- = the nth heptagonal number
- = the position in the sequence (n = 1, 2, 3, ...), also the number of dots along each side of the outer heptagon
Worked Example
Problem: Is 148 a heptagonal number? If it is, find its position n in the sequence.
Step 1: Set the formula equal to 148 and clear the fraction. This gives a quadratic equation in .
Step 2: Compute the discriminant. The number 148 can only be heptagonal if the discriminant is a perfect square.
Step 3: Apply the quadratic formula. Reject the negative root, because must be a positive integer.
Step 4: Check the result by substituting back into the formula.
Answer: Yes. 148 is the 8th heptagonal number, so .
Why It Matters
The Fermat polygonal number theorem, proved by Cauchy in 1813, states that every positive integer is a sum of at most seven heptagonal numbers. In Algebra 2, the sequence is a clean example of a quadratic sequence: its second differences are always 5. Competition problems often ask you to test membership the way the worked example does.
Common Mistakes
Mistake: Writing the formula as , which gives 4, 13, 27, ... instead of 1, 7, 18, ...
Correction: The sign inside is minus: . Check it quickly with . Every polygonal sequence must start at 1.
