A heptagonal number is a figurate number that represents a heptagon. The n-th heptagonal number is given by the formula
The first few heptagonal numbers are:
The parity of heptagonal numbers follows the pattern odd-odd-even-even. Like square numbers, the digital root in base 10 of a heptagonal number can only be 1, 4, 7 or 9. Five times a heptagonal number, plus 1 equals a triangular number.
A generalized heptagonal number is obtained by the formula
where Tn is the nth triangular number. The first few generalized heptagonal numbers are:
Every other generalized heptagonal number is a regular heptagonal number. Besides 1 and 70, no generalized heptagonal numbers are also Pell numbers.[1]
A formula for the sum of the reciprocals of the heptagonal numbers is given by:[2]