Is it possible to solve an equality such as:
$$(123)=\sigma (32) \sigma (31)$$
in term of $\sigma$? I was thinking about Cycles but I couldn't figure out a way to use it.
EDIT As a partial answer to my question, I have found that I can use PermutationProduct to solve manually the equality as follows:
p1 = Cycles[{{3, 2}}]
p2 = Cycles[{{3, 1}}]
s = Cycles[{{1, 3}}];
PermutationProduct[s, p1, s, p2]
giving $\sigma=(1,3)$. I would like to have an automatic solution if possible.