sum i=0 to n of i*2^i