An octagonal number is a figurate number that gives the number of points in a certain octagonal arrangement. The octagonal number for n is given by the formula 3n2 − 2n, with n > 0. The first few octagonal numbers are