I need to solve the following recurrence relations.

1.Homogeneous

A. an= 2an-1-an-2, for n> or equal to 2 and a0=4, a1=1

B. an+2= -4an-1+5an-2, for n> or equal to 2 and a0=2, a1=8

2.Non-homgogeneous

A. fn=3fn-1+n^2-3, n> or equal to 1; f0=1

B. fn+2+3fn+1+2fn=3n, n> or equal to 0; (f0,f1)=(0,1)

C. fn-4fn-1+4fn-2=3n+2^n, n> or equal to 2;(f0,f1)=(1,1)

D. an+3-3an+2+3an+1-an=3+5n, n> or equal to 0

Thanks.