Sn=1+3*2+5*2^2+.+(2n-1)*2^(n-1)
2Sn=1*2+3*2^2+5*2^3+.+(2n-1)*2^n
Sn-2Sn=1+2[2+2^2+.+2^(n-1)]-(2n-1)*2^n
-Sn=1+2[2^(n-1)-1]/(2-1)-(2n-1)*2^n
Sn=-1-2^n+2+(2n-1)*2^n
=(2n-2)*2^n+1
Sn=1+3*2+5*2^2+.+(2n-1)*2^(n-1)
2Sn=1*2+3*2^2+5*2^3+.+(2n-1)*2^n
Sn-2Sn=1+2[2+2^2+.+2^(n-1)]-(2n-1)*2^n
-Sn=1+2[2^(n-1)-1]/(2-1)-(2n-1)*2^n
Sn=-1-2^n+2+(2n-1)*2^n
=(2n-2)*2^n+1