2ndoctagonalnumber

<-- Enter octagonal number statement
  

Calculate octagonal number 2

The formula for octagonal number n is as follows
On = n(3n - 2)

Given n = 2, we have:
On = 2(3(2) - 2)
On = 2(6 - 2)
On = 2(4)
O2 = 8