(i) Let $\rightarrow A_{n+1} \stackrel{d_{n+1}}{\longrightarrow} A_{n} \stackrel{d_{n}}{\longrightarrow} A_{n-1} \rightarrow$ be an exact sequence, and let $\operatorname{im} d_{n+1}=K_{n}=\operatorname{ker} d_{n}$ for all $n$. Prove that
$$
0 \rightarrow K_{n} \stackrel{i_{n}}{\longrightarrow} A_{n} \stackrel{d_{n}^{\prime}}{\longrightarrow} K_{n-1} \rightarrow 0
$$
is an exact sequence for all $n$, where $i_{n}$ is the inclusion and $d_{n}^{\prime}$ is obtained from $d_{n}$ by changing its target. We say that the original sequence has been factored into these short exact sequences.
(ii) Let
$$
\rightarrow A_{1} \stackrel{f_{1}}{\longrightarrow} A_{0} \stackrel{f_{0}}{\longrightarrow} K \rightarrow 0
$$
and
$$
0 \rightarrow K \stackrel{g_{0}}{\longrightarrow} B_{0} \stackrel{g_{1}}{\longrightarrow} B_{1} \rightarrow
$$
be exact sequences. Prove that
$$
\rightarrow A_{1} \stackrel{f_{1}}{\longrightarrow} A_{0} \stackrel{g_{0} f_{0}}{\longrightarrow} B_{0} \stackrel{g_{1}}{\longrightarrow} B_{1} \rightarrow
$$
is an exact sequence. We say that the original two sequences have been spliced to form the new exact sequence.