Let $(R,+,\cdot)$ be a ring such that $a^2 = 0 \iff a=0$. Let $x \in R$ such that $\exists n \in \mathbb{N}, n \geq 2$ for which $x^{n+1} = x^n$. Prove that $x^2 = x$.
I tried proving that $(x^{n} - x^{n-1})^2 = 0$ and so on so that I achive $(x^2 - x)^2 = 0$, but I didn't manage to do it.
Note that for $k\geq 0$ we have $x^{n+k}=x^n$. Hence, we get
$$ (x^n - x^{n-1})^2 = x^{n-2} (x^{n+2} + x^{n} -2x^{n+1}) =x^{n-2} \cdot 0 =0$$
and thus $x^n= x^{n-1}$.