Show that if $m$ in $\mathbb{Z}$ has greatest common divisor $1$ with $21$, then $m^{6}-1$ is divisible by $63$. Also, I have to work in $\mathbb{Z}/63 \mathbb{Z}^{*}$, thus the group $63$ modulo $\mathbb{Z}$ under multiplication.
So in other words, I have to prove $m^{6} \equiv 1 (\mod 63)$.
I have no idea how to tie the fact that $m$ has $1$ as gcd with $21$ together with working in the $63$ modulo $\mathbb{63}$ group. I would really appreciate some hints or suggestions guide me in the right direction.
The key point is that $21$ and $63$ have the same prime divisors.
Indeed, since $21 = 3 \cdot 7$ and $63 = 3^2 \cdot 7$, we have $$ \gcd(m,21)=1 \iff \gcd(m,3)=1=\gcd(m,7) \iff \gcd(m,63)=1 $$ Then Euler's theorem gives $$m^6\equiv 1 \bmod 7, \quad m^6\equiv 1 \bmod 9$$ Therefore, $m^6\equiv 1 \bmod 63$.