let $D_3$ be the dihedral group for a triangle (so it’s the set of all congruences that leave a regular triangle invariant). Consider $S_3$ the set of all permutations of 3 elements. Now my book says that it’s directly obvious that $f\colon D_3\to S_3$ is a homomorphism. I personally don’t see that directly. I’m guessing I should show that: $$ f(d_1\cdot d_2)=f(d_1)f(d_2). $$ So the composition of two congruences should correspond with the composition of its two associated permutations. How can I show that generally?
I first tried out an example. Consider the following two congruences: $c_1=\sigma_{\pi/3}$ and $c_2=\rho_{2\pi/3}$. The corresponding permutations should be $p_1=(12)$ and $p_2=(132)$. However, the problem I stumbled upon is the following:
As you can see, the permutation that corresponds with $\rho_{2\pi/3}$ seems to depends on whether the triangle is reflected or not. How can that be the case? Shouldn't each permutation be the same for the same rotation, no matter how the vertices 1,2,3 are numbered initially?
I found this problem, because I wanted to check that $$ f(\rho_{2\pi/3}\cdot\sigma_{\pi/3})=f(\rho_{2\pi/3})\cdot f(\sigma_{\pi/3})=(132)\cdot(12)\neq (13), $$ where I found (13) by writing out the trangles:

