nd(z,k)=π2Kk+2πKkn=1(-1)nqncos(2nζ)1+q2n.