For all integers $a$ prove that
$$a^7 \equiv a \pmod {42}.$$
There is no use telling you all what and how much I tried because I cannot even understand the problem itself left alone attempting it. It would be great help for me if I would be provided some hint on either solving the problem or understanding it.
But, I see one thing that $42=7\cdot6$ and somehow we can use Fermat theorem but how? I do not know it. All suggestions/advice leading me to the problem would be greatly welcomed.