\[Z(t)=2\sum_{n=1}^{m}\frac{\cos\left(\vartheta(t)-t\ln n\right)}{n^{1/2}}+R(t),\]