The problem comes from a practice final for a final exam I have later today.
It says "Show that if $\gcd(e, 24) = 1$ then $e^2 \equiv 1 \bmod 24$".
I found that Euler's totient function $\phi(24) = 8$ So I now know $e^8 \equiv 1 \bmod 24$, but I'm not sure where to go from there.
I found that if $\sqrt[4]e$ is an integer, then it's obvious that $\sqrt[4]e \mid e$, so $\gcd(\sqrt[4]e, 24) = 1$ which I can use to prove $e^2 \equiv 1 \bmod 24$, but that only proves it in the case where $\sqrt[4]e$ is an integer (and I don't think I'm really going in the right direction here).