I have a question from exam and I really don't know how to solve it, and tried a lot.
Say I have a permutation $a=(1 6)(2 5 7)(3 8 4 9)$ so that $a \in S_9$ and I want to find how many permutations $b\in S_9$ exist that commute with $a$ with respect to the composition operation: $a\star b=b \star a$
Thanks in adavance!
Consider, just for testing, $b=(124)(35)(6789)$ and compute \begin{align} b\star a\star b^{-1} &= (124)(35)(6789)(16)(257)(3849)(142)(35)(6987)\\ &=(1659)(27)(384)\\ &=\bigl(b(1)\,b(6)\bigr)\, \bigl(b(2)\,b(5)\,b(7)\bigr)\, \bigl(b(3)\,b(8)\,b(4)\,b(9)\bigr) \end{align}
This holds in general (and you should be able to prove it): if $b$ is any permutation in $S_9$, then $b\star a\star b^{-1}$ is the permutation obtained by applying $b$ to every element in the disjoint cycle decomposition of $a$.
Now, $a\star b=b\star a$ is the same as $b\star a\star b^{-1}=a$.