$42 = 2\cdot3\cdot7$, so we can check individually if
$2|a^7-a$ and $3|a^7-a$ and $7|a^7-a$
simultaneously hold. For the first one, we consider two cases: either $a$ is odd or is even. This means that either $a\equiv0\pmod 2$ or $a\equiv1\pmod2$.
Thus, we either have $1^7-1\equiv 0\pmod2$ or $0^7-0\equiv0\pmod2$. In both case, we can conclude that $2|a^7-a$.
Next we deal with 3 cases: either $a\equiv0\pmod3$ or $a\equiv1\pmod3$ or $a\equiv2\pmod3$. Plug the $a$ in any of the three cases and you should get that $a^7-a\equiv0\pmod3$
Finally you deal with 7 cases the same way around.