The question is
Prove that if an odd integer n > 1 is not a prime or a prime power, then there exists a nontrivial square root of 1 modulo n.
There is a proof "If n is composite, then there exists a non trivial square root of 1 modulo n." I think some prime powers are also composite numbers (eg.16). So how shall I go with the proof?
Thank you
Here's an outline. The function $h(n) = |\{x\in\mathbb{Z}/n\mathbb{Z} : x^2 = 1\}|$ is multiplicative by the Chinese Remainder Theorem. If $p$ is an odd prime, then $h(p^k) = 2$ for all $k\ge 1$, because $1$ and $-1$ are the only roots of unity modulo odd primes.
Now suppose $n$ is odd and not a prime power; let $p$ and $q$ be distinct prime factors of $n$. Then $h(n) \ge h(p)h(q) = 4$, so $\mathbb{Z}/n\mathbb{Z}$ has nontrivial roots of unity.