Find the first four terms of the sequence defined by a1=3 and an=3an−1+2, for all n > 1.
an=3an−1+2 for n>1
∴a2=3a2−1+2=3a1+2
=3(3)+2=11 [∵a1=3]
a3=3a3−1+2=3a2+2
=(11)+2=35 [∵a2=11]
a4=3a4−1+2=3a2+2
=3(35)+2=107 [∵a3=35]
∴ The first four terms of A.P. are 3, 11, 35, 107.