Let $H$ be a Hilbert space and let $T\in \mathcal{B}(H)$ such that $T$ is self-adjoint. I want to show that if $T$ is non-zero, then $T^n\neq 0$ for all $n\in \mathbb{N}$.
Suppose $n$ be the least positive integer such that $T^n=0$. Then for all $x,y\in H$, we have $\langle T^nx,y\rangle=0\implies \langle T^{n-2}x,T^2y\rangle=0$. Herefrom can I show that $T^{n-1}=0$? If it is possible, then I am done. Please suggest.