Octagonal number (source code)

= Octagonal number

The <polygonal number> $P_{8,n}=n(3n-2)$ for a <positive integer> $n$.