The problem comes from an exercise of Rings and Categories of Modules.
Let $\left( M_{\alpha} \right) _{\alpha \in A}$ be an indexed set of $R$-modules.
The author says $M$ may be isomorphic to the external direct sum $\oplus _AM_{\alpha}$, yet not be the internal direct sum of these modules.
I want to find an example.
In my opinion, if A is a finite set or a countable set, the external direct sum and the internal direct sum may be similar.
Maybe my opinion is wrong.
Thanks!
I assume that the $M_\alpha$ are implicitly submodules of $M$. Take $M = k^2$ for $k$ your favorite field. Let $M_1= M_2 =\{(x,0):x\in k\}$, i.e. the $x$-axis. The internal sum of $M_1$ with $M_2$ is not $M$, while $M\cong M_1\oplus M_2$ as $k$-vector spaces, since they are both of dimension $2$.