Doubt about solving a recursion

Hello this is the solution of non hemogenous recursion ,are you agree with my solution:
[{a[n+2]-2a[n+1]+a[n]Šn,a[0]Š1,a[1]Š2},a,n](r-1)^2 = 0 => r= 1an(h) =c1 + nc2an(p)=a0+a1nan=c1+nc2+n^2c1=1c2=0 then an= 1+n^2Thank you very much for your attention