Let $n\gt1$, and $h(n)$ denote the number of invertible residue classes $mod n$ that are self-inverses.
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.