Let S be a semigroup without proper two-sided ideals and suppose that for every a,b∈S at least one of the products ab and ba is equal to one of the elements a,b. Prove that either ab\equal{}a for all a,b∈S or ab\equal{}b for all a,b∈S.
L. Megyesi superior algebrasuperior algebra unsolved