If $a,b$ are elements of a group and $a^2=e, b^6=e, ab=b^4a$, then find the order of $ab$ and express ${(ab)}^{-1}$ in terms of $a^mb^n$ and $b^ma^n$
I could find the order of $ab$ to be 6 but struggling to find ${(ab)}^{-1}$ in terms of $a^mb^n$ and $b^ma^n$.
Please help me move forward.
As indicated in hints beneath the OP,
$$(ab)^{-1}=b^{-1}a^{-1}=b^5a$$
which gives the inverse in the form $b^ma^n$. To get it in the form $a^mb^n$, use the equation $ab=b^4a$ to obtain
$$(ab)^{-1}=(b^4a)^{-1}=a^{-1}b^{-4}=ab^2$$
Added later: It's worth noting that $(ab)^{-1}=ab^2=b^5a$ implies $(ab)^{-2}=(ab^2)(b^5a)=aba$ and hence (using what the OP found, namely $(ab)^6=e$)
$$e=(ab)^{-6}=(aba)(aba)(aba)=ab^3a$$
from which it follows that $b^3=e$, so the order of $b$ is not $6$. (This was found by orangeskid in more direct fashion.)