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

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

Given,


a1 = 1 = a2, an = an–1 + an–2, 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 = 1


When n = 2:


a1 = 1


When n = 3:


a3 = a3–1 + a3–2


a3 = a2 + a1


a3 = 1 + 1


a3 = 2


When n = 4:


a4 = a4–1 + a4–2


a4 = a3 + a2


a4 = 2 + 1


a4 = 3


When n = 5:


a5 = a5–1 + a5–2


a5 = a4 + a3


a5 = 3 + 2


a5 = 5


First five terms of the sequence are 1, 1, 2, 3, 5.


4