Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
A pentagonal number is a figurate number that extends the concept of triangular and square numbers to the pentagon, but, unlike the first two, the patterns involved in the construction of pentagonal numbers are not rotationally symmetrical. The nth pentagonal number pn is the number of distinct dots in a pattern of dots consisting of the outlines of regular pentagons with sides up to n dots, when the pentagons are overlaid so that they share one vertex. For instance, the third one is formed from outlines comprising 1, 5 and 10 dots, but the 1, and 3 of the 5, coincide with 3 of the 10 – leaving 12 distinct dots, 10 in the form of a pentagon, and 2 inside.
The nth pentagonal number is the sum of n integers starting from n (i.e. from n to 2n-1). The following relationships also hold:
Pentagonal numbers are closely related to triangular numbers. The nth pentagonal number is one third of the (3n − 1)th triangular number. In addition, where Tn is the nth triangular number:
Generalized pentagonal numbers are obtained from the formula given above, but with n taking values in the sequence 0, 1, −1, 2, −2, 3, −3, 4..., producing the sequence:
The number of dots inside the outermost pentagon of a pattern forming a pentagonal number is itself a generalized pentagonal number.
Other properties
for n>0 is the number of different compositions of into n parts that don't include 2 or 3.
is the sum of the first n natural numbers congruent to 1 mod 3.
Generalized pentagonal numbers and centered hexagonal numbers
Generalized pentagonal numbers are closely related to centered hexagonal numbers. When the array corresponding to a centered hexagonal number is divided between its middle row and an adjacent row, it appears as the sum of two generalized pentagonal numbers, with the larger piece being a pentagonal number proper:
1=1+0
7=5+2
19=12+7
37=22+15
In general:
where both terms on the right are generalized pentagonal numbers and the first term is a pentagonal number proper (n ≥ 1). This division of centered hexagonal arrays gives generalized pentagonal numbers as trapezoidal arrays, which may be interpreted as Ferrers diagrams for their partition. In this way they can be used to prove the pentagonal number theorem referenced above.
Tests for pentagonal numbers
Given a positive integer x, to test whether it is a (non-generalized) pentagonal number we can compute
The number x is pentagonal if and only if n is a natural number. In that case x is the nth pentagonal number.
For generalized pentagonal numbers, it is sufficient to just check if 24x + 1 is a perfect square.
For non-generalized pentagonal numbers, in addition to the perfect square test, it is also required to check if
The mathematical properties of pentagonal numbers ensure that these tests are sufficient for proving or disproving the pentagonality of a number.