Given a finite semigroup $S$ containing a unique idempotent $e$, I can show that every element $s\in S$ has an ''inverse" $s^{-1}\in S$ in the sense that $s s^{-1} = s^{-1}s = e$:
Since $S$ is finite, every element $s$ has an idempotent power $s^{p_s}$ with $p_s\geq1$. It follows that $s^{2p_s}$ is also idempotent. Since $e$ is the only idempotent, we obtain $e=s^{2p_s}$. Since $2p_s\geq 2$, we can define $s^{-1} = s^{2p_s-1}$ in the sense stated above.
Now my question: Is $e$ actually a unit of $S$, i.e., does $es = se = s$ hold for every $s\in S$?
Let $a\in S$. By the pigeonhole principle, there are integers $m,p\geq1$ such that $a^m = a^{m+p}$, and therefore $a^m = a^{m+kp}$ for every $k\geq0$. Setting $b=a^m$ yields $b^{p+1} = a^{m+mp} = a^m = b$. It follows $$(a^{mp})^2 = b^{2p} = b^{p+1}b^{p-1} = bb^{p-1} = b^p = a^{mp},$$ hence $a^{mp}$ is idempotent.
– Lemma 5 Feb 26 '24 at 00:40