$\mathbb{Z}_{n}^{*}=\left \{ a\Big|\gcd\left (a,n \right )=1 \right \}$
Now, my problem is that:
If $a_1,a_2\in \mathbb{Z}_{n}^{*}$, how do I prove that $a_1\cdot a_2\in \mathbb{Z}_{n}^{*}$?
Can you help me and give me a hint how I need to prove it?
Thank you!
If $a_1\times a_2\notin\mathbb{Z}_n^*$, then $\gcd(a_1\times a_2,n)>1$. If $p$ is a prime factor of $\gcd(a_1\times a_2,n)$, then $p\mid a_1\times a_2$. What can you deduce from the fact that a prime number divides a product?