Consider the product $b_1, b_2,..., b_{\phi(m)}$ where $\phi(m)$ is the number of coprimes that are less than or equal to $m$. When is this product congruent to $-1$ (mod $m$) and when is this congruent to $1$ (mod $m$)?
Let $b_1, b_2, \cdots, b_{\phi(m)}$ be the integers between $1$ and $m$ that are relatively prime to $m$. $B$ is the product of these integers. When is $B$ congruent to $1$ (mod $m$) and when is B congruent to -1 (mod $m$). Prove your conclusion.
This is a first semester number theory class, so please limit answers to stuff in that semester. No group theory or similar topics.
So far I have managed to prove the first part. By pairing up the numbers in the set {\phi(m)} I am able to extrapolate the residues and figure out that it must be congruent to 1 or -1 (mod $m$). But this part seems much harder and I'm not quite sure where to start. I even made a list of the first 20 or so $B$ and I couldn't find a pattern.