sum (2i-1)/2^i, i=1 to n