Today i was working on a problem on a ring with goes as follows. Let A be a ring, prove that any element of A has either $0,1$ or an infinity of left inverses.
I think i found a proof of this statement, but the official solution looks nothing like mine. It is said that i should show that if any element has two distinct left inverses then there's an infinity of them (which i did) by considering the kernel of $f:x\rightarrow ax$. My try goes as follow:
let $x,y$ be such inverses then for all $p,q\in\mathbb Z$ satisfying $p+q=1$, $px+qy$ is another left inverse, because : $(px+qy)a=p+q=1$. And for all $p\in\mathbb Z$ we have :
$px-(p-1)y=(p-1)x-(p-2)y$ that implies $x=y$. Hence there are infinitely many distinct elements of the form $px+qy$. Is my proof flawed ?