等差除等比 的前n项和

问题描述:

等差除等比 的前n项和
{2-n/2^(n-1)}的前n项和

{2-n/2^(n-1)}的前n项和
a1=1/1
a2=0/2
a3=-1/4
a4=-2/8
a5=-3/16
Sn=1/1+0/2-1/4-2/8-3/16+.(2-n)/2^(n-1)
2Sn=2/1+0/2-1/2-2/4-3/8-.(2-n)/2^(n-2)
2Sn-Sn=1-1/2-1/4-1/8.-1/2^(n-2)+(2-n)/2^(n-1)
Sn=1-[1/2+1/4+1/8+.1/2^(n-2)]+(2-n)/2^(n-1)
=1-(1/2)(1-[1/2]^[n-2])/(1-[1/2])+(2-n)/2^(n-1)
=1-(1-[1/2]^[n-2])+(2-n)/2^(n-1)
=(4-n)/2^(n-1)