Let $m >1$ and $S=\{r_1, r_2, \ldots, r_{φ(m)}\}$ as in the proof of Euler’s theorem. Prove that the product $r_1·r_2·\ldots \cdot r_{φ(m)}≡−1 \pmod m$.(Use ideas similar to the proof of Wilson’s Theorem. This conclusion could help with the last line of the proof of Euler’s theorem.)
Can anyone help me with this even with the hint? I'm kind of stumped.