Number of ways to arrange numbers in matrix in A.P.

111 Views Asked by At

Find the number of ways to arrange the numbers from $1,2,...,n^2$ in an $n×n$ matrix such that the numbers in each row and in each column are in A.P.