derivative sum 2^(1/k) from 0 to x-1