solution for this recurrence rel is given by Ah + Ap {hypothesis + particular solution}
for Ah , given equation can be put equal to zero
i.e = An - 2An-1 = 0
it is of degree 1
divide whole equation by An-1
Now equation remains as A - 2 = 0 --> characteristic equation
i.e A = 2
i.e Ah = c(2)n
A0 = 1 therefor by putting value of n in above equation we get value of c as 1
now we have to solve particular solution
the solution would be d.an because it is of the form 2n
i.e d . 2n - 2 . d. 2n-1 = 2n we don;t have a solution for this equation as both terms on left side cancel each other therefor we can put it as zero
i.e An = Ah + Ap
Answer = An = 1.(2)n + 0 == (2)n