If $R$ is a domain and $f: R^n \to R^n$ is an $R$-module endomorphism. Suppose $f^m = 0$ for some $m> 0$. Show that $f^n = 0$.
The cases $ m \le n$ is trivial. When $m>n$, I don't have much idea how to start. I tried to apply the Cayley-Hamilton theorem but doesn't seem to help much.
Let $Q$ be the field of fractions of $R$, and let $F:Q^n\to Q^n$ be the morphism of $Q$-modules which has the same matrix as $f$ (with respect to the standard bases of $R^n$ in the case of $f$ and of $Q^n$ in the case of $F$)
Show that $F$ is nilpotent, and that therefore $F^n=0$.
If $i:R^n\to Q^n$ is the obvious inclusion, then we have $F\circ i=i\circ f$. Use this, and the fact that $i$ is an injective function, to show that $f^n=0$.