Let $p$ and $q$ be distinct odd primes and write $$n=\frac{(p-1)(q-1)}{2}$$ Show that $$x^n\equiv 1\mod pq$$ for all $x\in\mathbb{Z}$ with $\gcd(x,pq)=1$.
I tried solving it the following way. Since $$\varphi(pq)=(p-1)(q-1)=2n$$ (where $\varphi$ denotes Euler's totient function), we have, by Euler's congruence, that $$x^{\varphi(n)}=x^{2n}\equiv 1\mod pq$$ whenever $\gcd(x,pq)=1$. However, I don't see how I can reduce the power of $x$ from $2n$ to $n$.