$S(x) = -\frac12 \theta(1/2, 2x) - 1$, where $\theta$ is [Jacobi's theta function][1]. I'm not sure if this is the sort of answer you want. [1]: http://en.wikipedia.org/wiki/Theta_function