等比数列求和
a1=1/2,q=1/2,n=8
Sn=[a1(1-q^n)]/(1-q)
=(1/2)*[1-(1/2)^8]/(1-1/2)
=(1/2)*(1-1/256)/(1/2)
=1-1/156=255/256