The question is : Show that the nilpotent elements of a commutative ring form a subring.
Here is my unsuccessful take on it:
Let $R$ be a commutative ring and let $S = \{a \in R | a^n = 0 \}$ be the set of nilpotent elements from $R$. Now, $0 \in S$, since $0^1 =0$. Hence $S$ is nonempty.
Let $x,y \in S$, then for some positive integers $n$ and $m$ we have $x^n=0$ and $y^m=0$. So far so good. Now we try to show that $(x + y)^k = 0$, for some positive integer k. This is where I am stuck.