I have been able to show this for a specific example, but I am at a loss of how to formally prove it. I know, by Euler's Theorem, that $a^{\phi(m)}\equiv 1\pmod{m}$, but I am unsure of what to do with it.
I don't need anyone to write the proof for me, but any nudges or hints in the right direction would be greatly appreciated. Thank you!