Establish whether there exists an integer $a \in \mathbb{Z}, a \not\equiv 1$ such that $a^7 \equiv 1 \pmod{21}$
The first thing I tried was trying to compute the result of $a^7$ for some small $a$'s. This is what I found:
By breaking up $a^7$ into $a^2\cdot a^2 \cdot a^2 \cdot a$, I made it easier to find that: $$2^7 = 128 \equiv 2 \pmod{21}\\ 3^7 = 3^23^23^23 \equiv 81^23\equiv3 \pmod{21}\\ 4^7 \equiv \cdots\equiv 4 \pmod{21}\\\vdots\\ 7^7\equiv \cdots \equiv 7 \pmod{21}$$ I only did the computations until $7$ because I could clearly see a pattern. It appears as if: $$\forall a \in \mathbb{N}, a^7\equiv a \pmod{21} \tag{conjecture}$$
I think that, if I find a way to prove my conjecture, I'd be done with the problem. I tried to prove it by induction to no avail, so maybe that's not the right path. I thought that by factorizing $a^7-a$ and trying to find a relationship between $(a-1)^7$ and $a^7$ I could have had some luck, but it didn't happen.
Any inputs?
The conjecture is true because $a^7\equiv a\bmod21$ is equivalent to $a^7\equiv a\bmod7$ and $a^7\equiv a\bmod3$ by the Chinese remainder theorem, and both the latter statements are true for all $a$ by Fermat's little theorem.