I was studying elementary number theory and came up with a doubt regarding a statement as follows:
"x,m,n belongs to set of postive integers.
gcd(x,mn)=1 if and only if gcd(x,m)=gcd(x,n)=1"
In the book it is written that the above statement is true if gcd(m,n)=1
Isn't the statement true for all m and n belonging to the set of positive integers? If not,then why?