product from 1 to n of (k-1/2)