Definition:Octagonal Number/Definition 3

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

0 & : n = 0 \\ P \left({8, n - 1}\right) + 6 \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 Octagonal Number