A sequence is defined recursively by the given formulas. Find the first five terms of the sequence. An=an-1+an-2 and a1=1, a2=2

Using the given formulas, we can find the first five terms of the sequence:

a1 = 1
a2 = 2
a3 = a2 + a1 = 2 + 1 = 3
a4 = a3 + a2 = 3 + 2 = 5
a5 = a4 + a3 = 5 + 3 = 8

Therefore, the first five terms of the sequence are 1, 2, 3, 5, 8.