Definition:Heptagonal Number/Definition 3

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

0 & : n = 0 \\ P \left({7, n - 1}\right) + 4 \left({n - 1}\right) + 1 & : n > 0 \end{cases}$ where $P \left({k, n}\right)$ denotes the $k$-gonal numbers.

Also see

 * Equivalence of Definitions of Heptagonal Number