Write the first five terms in each of the following sequences:

a1 = a2 =2, an = an–1 – 1, n>2

Given,


a1 = 2 = a2, an = an–1 – 1, n>2


We can find the first five terms of a sequence by putting values of n


from 1 to 5


When n = 1:


a1 = 2


When n = 2:


a1 = 2


When n = 3:


a3 = a3–1 – 1


a3 = a2 – 1


a3 = 2 – 1


a3 = 1


When n = 4:


a4 = a4–1 – 1


a4 = a3 – 1


a4 = 1 – 1


a4 = 0


When n = 5:


a5 = a5–1 – 1


a5 = a4 – 1


a5 = 0 – 1


a5 = -1


First five terms of the sequence are 2, 2, 1, 0, -1.


4