กQปฎiปฬPj
@a0=1,a1=3
an=2an-1+an-2 (n2)
f(x)=ฐanx^n=a0+a1x+ฐanx^n (n2)
=a0+a1x+2xฐan-1x^n-1+x^2ฐan-2x^n-2 (n2)
=a0+a1x+2x{f(x)-a0}+x^2f(x)
=1+3x+2x{f(x)-1}+x^2f(x)
f(x)=(1+x)/(1-2x-x^2)=(1/2)/(1-ฟx)+(1/2)/(1-ภx)
ฟ=1+ใ2Aภ=1-ใ2
an=1/2E{ฟ^n+1+ภ^n+1}