A non-abelian group $G$ of order $pq$, where $p$ and $q$ are primes and $q>p$, can be represented as the product of its unique $q$-Sylow subgroup $A$ and one of the $q$ $\:p$-Sylow subgroups $B$. So $G=AB=\{ a^ib^j \mid a^q=e, b^p=e\}$. Now, the "composition law" must be $\: bab^{-1}=a^k$, $k \not = 0,1$.
I have two questions. I should perhaps say that I'm not familiar with direct or semidirect products.
Why does this show that all such groups are isomorphic? I.e. what is the isomorphism $\phi : G_1 \to G_2$ between $G_1$, in which $bab^{-1}=a^x$, and $G_2$, in which $bab^{-1}=a^y$? Could it be the isomorphism $\phi$ such that $\phi(a^x)=a^y$ and $\phi(b)=b$?
What values can $k$ take on? Certainly $k^p \equiv 1 \pmod q$, which implies $p \mid (q-1)$, but we already knew that. It is certainly not true that $k \in \Bbb U_q \implies k^p=e$, so I was wondering what $k$'s are allowed.