\section{A formula for \texorpdfstring{$S(N)$}{S(N)} without factorization} \label{sec:formula} Throughout, $\e(t)=\exp(2\pi it)$, $\mu$ is the M\"obius function, $\Lambda$ is the von Mangoldt function and $\varphi$ is Euler's function. For $n\ge1$ let \[ \Units(n)=\{x\in\Z:\ 0\le x