I’ve been reading Mathematics Galore! by James Tanton. He has a brief elegant and accessible proof of the existence of a power of 3 that ends in 001. He then asks if a power of 3 ever ends in 007.
This is equivalent to asking if $3^n = 7 \bmod1000$.
I can brute force the answer using WolframAlpha but cannot figure out an elegant proof.
This question has been driving me nuts for about a month now. Any help is greatly appreciated.