sum 1/2/(sqrt(1/2+k)), k=1 to k=n