This is the exercise IV.2.12 of Algebra book by Thomas W. Hungerford, page 190.
Let $R$ be a ring with unity and let $M$ be a free $R$-module with countably infinite basis $e_1,e_2, e_3, \cdots$.
Then $S=\text{End}_R(M)$ is a ring over $R$.
I need to show that for any positive integer $n$, $S$ is a free left-module over itself of rank $n$ i.e., $$S \cong S \oplus S \oplus \cdots \oplus S \ (\text{n times}).$$ The fact that is astonishing to me that $S \cong \bigoplus_{i=1}^{n}S$ for any $n$. That is, \begin{align}&S \cong S \oplus S, \\ &S \cong S \oplus S \oplus S, \\ & S \cong S \oplus S \oplus S \oplus S, \\& \text{so on} \end{align} How can this happen ?
The hint says:
$\{1_S\}$ is a basis of one element,
$\{f_1,f_2\}$ is a basis of two elements, where $f_1(e_{2n})=e_n,~f_1(e_{2n-1})=0$ and $f_2(e_{2n})=0,~f_2(e_{2n-1})=e_n$,
It is obvious that $S$ is a free $S$-module of rank $1$.
What about the other cases ?
I think we need to use induction. For,
if $n=1$, then $S$ is a free $S$-module with basis $\{1_S\}$,
Asumme $S$ is free $S$-module with basis say $\{f_1,f_2, \cdots, f_n\}$, that is, assume $S \cong S^n$, then we need to show $S \cong S^{n+1}$.
How does the above hints help ?