I was trying to figure out which modulo $n$ would make $2^{24}$ congruent to $1 \bmod n$. One answer is $241$, and I wonder if there is a good way to find it.
I tried to use Fermat's little theorem or Chinese Remainder theorem, but $24$ is not a prime and $241$ is not composite.
Direct factoring gives:
$$2^{24}-1=(2^{12}-1)(2^{12}+1)=(2^6-1)(2^6+1)(2^{12}+1)=(2^3-1)(2^3+1)(2^6+1)(2^{12}+1)$$
So: $2^3-1=7$ will work (as will $3$ or any of the factors of $2^6+1$ or $2^{12}+1$).
Indeed, a little effort shows that the full list of primes that work here is $\{3,5,7, 13,17, 241\}$