Regarding to this answer, I am looking for the presentation of $\mathbb Z_n\rtimes _{\phi}Q_8$, where
$$Q_8=\langle a,b\mid a^4=1, a^2=b^2, ba=a^3b\rangle=\{1,a,a^2,a^3,b,ab,a^2b,a^3b\}, ~~\mathbb Z_n=\langle c\rangle.$$
Here, for simplicity for myself, I set $n=3$, so : $$\mathbb Z_3\rtimes _{\phi}Q_8 \;=\; \langle a,b,c \mid a^4=1, a^2=b^2, ba=a^3b, c^3=1, yx=\phi_y(x)y\rangle$$ in which $y\in Q_8,~~x\in\mathbb Z_3$ and $\phi: Q_8\to Aut(\mathbb Z_3)$. The problem is really to define this homomorphism $\phi$ appropriately. Clearly, $\phi_y(1)=1$ and I have $$\phi_{a^i}(x)=?,~~\phi_{a^jb}(x)=?,~~\phi_b(x)=?, 1\leq i\leq3,~~1\le j\le 3$$ I thinking to myself to define $\phi_{a^i}(x)=id_{\mathbb Z_3}$ just to get rid of one part. Am I on a right way? Any suggestions?
\ltimesand\rtimesfor semi-direct product. I an never remember which way to point it though so I won't edit... – user1729 Sep 09 '13 at 19:31