Given an odd composite number $N$, where $N$ is not a prime power, I read the following in a Wikipedia article:
As a consequence of the Chinese remainder theorem, the number $1$ has at least four distinct square roots modulo $N$, two of them being $1$ and $-1$.
The square roots of $1$ and $-1$ are obvious to me. What I don't understand is why there are necessarily two others.
Can anyone prove how this result follows from the Chinese remainder theorem?
This follows very simply from the observation that if you have two coprime moduli, $p$ and $q$, then $$\begin{cases} x\equiv a \bmod p \\ x\equiv a \bmod q \\ \end{cases} \qquad \implies x\equiv a \bmod pq $$ as a special case of the CRT. (I would like to write the paired equivalence as $x\underset{(p,q)}\equiv (a,a)$)
Then apply this here with $$\begin{cases} x^2\equiv 1 \bmod p \\ x^2\equiv 1 \bmod q \\ \end{cases} \qquad \implies x^2\equiv 1 \bmod pq $$ ... or $x^2\underset{(p,q)}\equiv (1,1)\implies x^2= 1 \bmod pq$
Then with $p,q>2$ (so that ${-}1{\not\equiv}1$), we can see that $x^2\underset{(p,q)}\equiv (1,1)$ will hold for each of $x\underset{(p,q)}\equiv \{(1,1),$ $(1,-1),(-1,1),$ $(-1,-1)\}$. These will each produce different roots of $1\bmod pq$ with the final values of $x\bmod pq$ determined through the CRT
As an example of how this works out, $21\underset{(5,11)}\equiv (1,-1)$ so $21^2\underset{(5,11)}\equiv (1,1)$ and thus $21^2\equiv 1 \bmod 55$.