Ring Theory/Idempotent and Nilpotent elements

$$ x \in R $$ is an Idempotent if $$ x^2 = x $$

$$ x \in R $$ is nilpotent if $$ \exists n \in \mathbb{N}$$ such that $$ x^n = 0 $$