The characteristic equation is

r2 − 4r + 4 = 0

The two solutions are r1 = 2 and r2 = 2. Since 2 is a solution with multiplicity 2, the general solution has the form

an = c12n + c2n2n