Closed Form for Hexagonal Pyramidal Numbers

Theorem
The closed-form expression for the $n$th hexagonal pyramidal number is:
 * $S_n = \dfrac {n \left({n + 1}\right) \left({4 n - 1}\right)} 6$