Proposition
Let R be a ring. Then
R⊕(n−1)R⊕n≅R.
Proof
We are given an injective homomorphism ι:R⊕(n−1)→R⊕n, defined by
(r1,r2,…,rn−1)↦(r1,r2,…,rn−1,0).
Consider the short exact sequence
0→R⊕(n−1)↪ιR⊕n↠πnR→0.
It induces an isomorphism R≅R⊕n/imι, but imι is just R⊕(n−1).
■