Pentagonal number

A pentagonal number is a number that can be expressed in the shape of a pentagon. The formula for pentagonal numbers is \[(3n^2-n)\cdot\frac{1}{2}\]