an=2(an-1+2^n)-2^n
→(an+2^n)/(an-1+2^n)=2
→{an+2^n}是首项为3,q=2的等比数列
→an+2^n=3*2^(n-1)
→an=3*2^(n-1)-2^n