Write the first five terms in each of the following sequences :
(i) a1=1, an=an−1+2, n>1
(ii) a1=1=a2, an=an−1+an−2, n>2
(iii) a1=a2=2, an=an−1−1, n>2
(i) a1=1, an=an−1+2, n≥2
a2=a2−1+2=a1+2=3 [∵a1=1]
a3=a3−1+2=a2+2=5 [∵a2=3]
a4=a4−1+2=a3+2=7 [∵a3=5]
a5=a5−1+2=a4+2=9 ∵a4=7
∴ The first 5 terms of series are 1, 3, 5, 7, 9.
(ii) a1=1
an=an−1+an−2, n>2, a=1
⇒a3=a3−1+a3−2
=a2+a1=1+1=2
⇒a4=a4−1+a4−2
=a3+a2=2+1=3
⇒a5=a5−1+a5−2
=a4+a3=5
∴ The given sequence is 1, 1, 2, 3, 5.
(iii) a1−a2=2
an=an−1−1 n>2
⇒a3=a3−1−1
=a2−1=2−1=1
⇒a4=a4−1−1
=a3−1=1−1=0
⇒a5=a5−1−1
=0−1=−1
∴ The first 5 terms of the sequence are 2, 2, 1, 0, -1.