How to prove the product of the elements of $U_n$ , $B$is congruent to $1$ or $-1$.
$U_n$ is the set of all positive numbers less than and relatively prime to $n$.
We have to prove $B \equiv 1$ (mod n) where $B$ is the product of the elements of $U_n$.
My Attempt: We can see the statement is true for $n = 1 , 2$.
The number of elements of $U_n$ will be even for all natural number $n> 3$ as $\phi(n)$ is an even number for all natural number $n \geq 3$. So we will get odd number of elements of order $2$ for each group of order $n(\geq 3)$.
$B = b_1 b_2 ... b_k$ where $b_i \in U_n$ and $b_i$ is of order $2$ and $k$ is an odd number for all$n \geq 3$.
Now it remains to prove this product is congruent to $1$ or $-1$ mod n.
Can anyone please help me ?