Find all positive integers $m$ with the property that every unit $a$ in $\mathbb{Z}_m$ satisfies $a^2 = 1$.
If n is such that every element $(\mathbb{Z}/n\mathbb{Z})^{\times}$ is a root of $x^2-1$. Prove that $n$ divides 24.