5. [15%] Solve the recurrence equation given by:
an+2 - 2an + an+1 = 0, a0 = 0, a1 = 1.