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
1, 8, 21, 40, 65, 96, 133, 176, 225, 280, 341, 408, 481, 560, 645, 736, 833, 936
The octagonal number for n can also be calculated by adding the square of n to twice the (n − 1)th pronic number.
Octagonal numbers consistently alternate parity.
Octagonal numbers are occasionally referred to as "star numbers," though that term is more commonly used to refer to centered dodecagonal numbers.[1]
The
n
6n-5
x2=8
2 ⋅ 6-5=7
[1,1,1,1,1,1,1], [1,1,1,1,1,2], [1,1,1,1,3], [1,1,1,2,2], [1,1,2,3], [1,2,2,2], [1,3,3] and [2,2,3].
A formula for the sum of the reciprocals of the octagonal numbers is given by[2]
Solving the formula for the n-th octagonal number,
xn,