Triangle numbers

Triangle numbers are numbers that start from one and increase in a pattern of triangles shown by the dots below.

The sequence starts with 1 dot and the number of dots increases by adding 1 dot to the base of the previous triangle.

Each triangle number is the previous number plus the number of yellow dots. The number of yellow dots increases by one with each new number. We can use this information to produce a recursive (which means occurring again) relationship between triangle numbers.

The number of dots in each triangle is given in the table below. If n = sequence number and X_n is the number of dots for n then

n12345
X_n1361015

Notice that the number of yellow dots for n = 2 onwards in each triangle number is the same as n.

We can use this to produce our recursive relationship. X_1 = 1 and X_{n} = X_{n-1} + n

Let’s test this X_5 = X_4 + 5 = 10 + 5 = 15

So, X_6 = 15 + 6 = 21

We can also work out a formula to find out the number of dots for any n in the sequence without using a recursive relationship. To help us do this I have arranged the dots we have been using to represent triangle numbers in a different way.

These are the same number of dots just rearranged

If we double the number of dots in each picture, we get the following pattern

Each shape of dots above is a rectangle. Each rectangle has n dots at the bottom and n + 1 dots up the side

The number of dots in each rectangle is the base times the height which is n(n+1).

The number of dots in each triangle is half of this, \frac{n(n+1)}{2}.

Let’s test this X_5 = \frac{5\times6}{2} = \frac{30}{2} = 15

We can also work out what the 50th term in the sequence is X_{50} = \frac{50\times51}{2} = \frac{2550}{2} = 1275