Show that if $n = 35$ is used as an RSA modulus then the encryption exponent $e$ always equals the decryption exponent $d$?
What I have so far:
$n = 35$
Therefore $p = 5$ and $q = 7$ or vice versa, which means Euler's phi function is
$\varphi = (5-1) \cdot (7-1) = 24$
Then to find $e$ we need the fact that $\gcd(e,\varphi) = 1$
$\gcd(e, 24) = 1$
Therefore the possible values of $e$ are only prime. $e = 5, 7, 11, 13, 17, 19, 23$
Then $d$ must follow the equation $d \equiv e^{-1} \mod \varphi$ or $(d\cdot e) \equiv 1 \mod 24$
Then I've tried for all those values which solve that equation. Why is that true? How can I explain this?