Sum sin(kx) for k = 1 to n