
In maths, a sequence is an ordered set of numbers. For example 1, 5, 9, 13, 17. For this sequence, the rule is add four.
Each number in a sequence is called a term and is identified by its position within the sequence. We write them as follows.
The first term ![]()
The second term ![]()
The third term ![]()
The nth term ![]()
The above sequence can be generated in two ways.
You can use a formula for the nth term. Here it would be
. Adding the same amount (in this case 4) generates each term. Each term will therefore be a multiple of
.
However, the first term when n=1 is 1.
4(1) + ? = 1
4(1) - 3 = 1
When n=1![]()
When n =2
and so on.
The other way of generating this sequence is by using a recurrence relation, where each term is generated from the previous value.
When n=1![]()
When n=2![]()
When n=3![]()
The recurrence relation would therefore be
. The starting value,
, would have to be provided. Note that the starting value can also be
.
A recurrence relation is a sequence that gives you a connection between two consecutive terms. These two terms are usually
and
. However they could be given as
and ![]()
Generally, the linear recurrence relation ![]()