G(m,n)=k=0n-1-πk2m/n;