Let $M$ be a finite monoid with identity $e$. If $x\in M$ has a left inverse $b$, I want to show that $b$ is also a right inverse.
There’s already a proof here In a non-commutative monoid, is the left inverse of an element also the right inverse?.
However, in my book the hint to this problem goes as follows. Since the set $\{x^n: n\in \mathbb N\}$ is finite, there are two distinct positive integers $l,k$ with $x^l=x^k$. But because $M$ is not a group there’s no cancellation law. How should I proceed?