I'm trying to show that $U(n)^2$ is a proper subgroup of $U(n)$. Here
$$ U(n)^2 = \{x^2 \mid x \in U(n)\}$$
where $U(n)$ is the group of units modulo $n$.
My idea was to argue as follows:
Consider all elements of orders that are powers of $2$ in $U(n)$. Say these orders are $2^{k_1}, \dots, 2^{k_n}$ where $k_1 < \dots < k_n$. Then $U(n)^2$ does not contain an element of order $2^{k_n}$ (it will have elements of at most $2^{k_n - 1}$ for powers of $2$).
Is this correct?
I looked at the solution and it said that $1 = (n-1)^2$ implies it is a proper subgroup. But I don't think this works just like that: $n-1$ is minus one and there could be some $x \in U(n)$ such that $x^2 = -1$. So $U(n)^2$ could still contain $-1$.
What am I missing?