an=2^n+(2n-1)求an的前n项和sn

问题描述:

an=2^n+(2n-1)求an的前n项和sn

Sn
=(2^1+1)+(2^2+3)+……+[2^n+(2n-1)]
=(2^1+2^2+……+2^n)+(1+3+……+(2n-1))
=2^1*(1-2^n)/(1-2)+[1+(2n-1)]*n/2
=2^(n+1)-2+n²