Definition:Heptagonal Number/Definition 3

Definition
Heptagonal numbers are defined as the sequence:
 * $\forall n \in \N: H_n = \map P {7, n} = \begin{cases}

0 & : n = 0 \\ \map P {7, n - 1} + 5 \paren {n - 1} + 1 & : n > 0 \end{cases}$ where $\map P {k, n}$ denotes the $k$-gonal numbers.

Also see

 * Equivalence of Definitions of Heptagonal Number