计算.1+1/2+1/(2²)+1/(2³)+…+1/(2的2004次方)

问题描述:

计算.1+1/2+1/(2²)+1/(2³)+…+1/(2的2004次方)

1+1/2+1/(2²)+1/(2³)+…+1/(2^2004)
=1*(1-(1/2)^2004)/(1-1/2)
=2-(1/2)^2003.