Let $R$ be a commutative ring and $M,N$ be $R$-modules. Does $M \oplus N \cong M$ imply that $N = 0$?
I would think that $M \oplus N \cong M$ implies that $(M \oplus N)/M \cong M/M = 0$, but is that true? And if yes, how would the first isomorphism induce the second one? Sorry if this question has been answered before, I could not find an answer.
Edit: And what if $M$ is assumed to be finitely generated?
Assume that $M$ is finitely generated. Let $f:M \xrightarrow{\cong} M \oplus N$ be an isomorphism and let $p:M \oplus N \to M$ be the projection on the first factor. Now $p \circ f:M \to M$ is a surjective endomorphism. It is hence an isomorphism, see here. Now as $p\circ f$ and $f$ are both isomorphisms, so is $p = (p \circ f) \circ f^{-1}$. But the kernel of $p$ is $N$, so $N=0$