f(n) = (((sum_(i=1)^n (1/(2^i))i)) + 1/(2^n)