product (2^k)(2^k-1) k=1 to n