let $n$ be odd integer , prove that : $D_{4n} $ is isomorphic to $ D_{2n} \times Z_2 $
it's an example which the text proves ! but i can't understand any thing from the argument !
but i tried to prove it by constructing the isomorphism function directly but every time there was a tiny gap !so anyone knows nice proof fot this ?
Note that $Z_n\times Z_2\cong Z_{2n}$ if $n$ is odd and the inveres of $(x,y)\in Z_n\times Z_2$ is $(-x,y)$, that is we have an operation of $Z_2$ on $Z_{2n}$ by inversion that boils down to the trivial operation on the summand $Z_2$ and again inversion on $Z_n$. Therefore $$ D_{4n}\cong Z_{2n}\rtimes Z_2\cong(Z_n\times Z_2)\rtimes Z_2\cong(Z_n\rtimes Z_2)\times Z_2\cong D_{2n}\times Z_2.$$