sum 0 to 7 3*4^k