Write $B = \begin{bmatrix}1&2&3\\0&1&4\\0&0&1\end{bmatrix}$ as a product of elementary matrices.
Akshit Bhardwaj, AIR 12, 2025
Let us take $I = \begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}$
$R_1 \to R_1 + 2R_2$ (Equivalent to premultiplying by elementary matrix)
$R_1 \to R_1 + 3R_3$
$R_2 \to R_2 + 4R_3$