Given $n\geq 2$, let $M$ be a matrix with entries $1, \dots, n^2$, e.g.,
$$\begin{alignat*}{1} A_3 = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix} & \qquad A_4 = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 5 & 6 & 7 & 8 \\ 9 & 10 & 11 & 12\\ 13 & 14 & 15 & 16 \end{pmatrix} \end{alignat*}$$
How do I prove that $\operatorname{rank}(M)=2$? I am supposed to use only the elementary row operations. For me, the definition of $\operatorname{rank}$ is number of non-zero rows in a row-echelon form.
For a specific $n$, I can actually perform the row operations and obtain the row-echelon form. However, I don't know how to prove it in general. Should I prove it using induction? How do I proceed with the induction step? The matrices $A_n$ and $A_{n+1}$ are completely different!
By the way, is there any specific name for this type of matrices?