I was observing a maths lesson about sequences in a sixth form college. This was pitched at a fairly low level focusing primarily on arithmetic sequences, but a student was having a go at some challenge problems and got stuck on the problem of finding the th term of the sequence 1, 3, 6, 10, 15, … The teacher asked me to help him. This is a quadratic sequence with first differences 2, 3, 4, 5, … and second differences 1, 1, 1, 1, …. The procedure for quadratic sequences is to divide the second difference by two and use that as the coefficient of . Then compare this resulting sequence with the original one and deduce the other terms. Here the answer is .

After the lesson I continued to think about this problem and realised that the sequence 1, 3, 6, 10, 15, … is the sequence of *triangular numbers*. The Pythagoreans associated certain sequences of numbers with polygons, so we have *triangular numbers*, *square numbers*, *pentagonal numbers*, *hexagonal numbers*, etc. The relationship between these numbers and their associated polygons is clearer to see when the numbers are represented as dots, as in the following diagram:

I noticed that the next polygonal numbers, the square numbers, are also a quadratic sequence, with th term given by . I wondered if all the polygonal numbers are quadratic sequences.

I could see that the pentagonal numbers 1, 5, 12, 22, 35, 51, … also form a quadratic sequence, with first differences 4, 7, 10, 13, 16, … and second differences 3, 3, 3, 3, … Dividing the second difference by 2 we see that the th term of the sequence must involve . The following table then reveals what the remaining term must be:

Therefore the th term of the pentagonal number sequence is of the form .

It turns out that all the polygonal number sequences are quadratic sequences. To prove this to myself and derive a general formula, I produced the following table in excel showing the first 20 terms of polygonal number sequences from the triangular to the icosagonal (20-sided polygon):

Looking at this table, I noticed that the triangular number sequence which the student had asked me about in the lesson I observed is actually the key to deriving a general formula for the th term of any polygonal number sequence. Specifically, the table shows that the th term for the -gonal sequence is just the th term for the triangular sequence plus times the th term of the triangular sequence.

For example, the 9th term () for the hexagonal sequence () is

In general, the th term for the -gonal sequence is

which simplifies to