If we denote by aij the number in the i th row and j
th column then aij=(i−1)n+j for
all i, j = 1, 2, ... , n. Because any two numbers are in different rows
and different columns, it follows that from each row and each column
exactly one number is chosen. Let a1j1,a2j2,...,anjn be the chosen numbers, where j1,j2,...,jn is a permutation of indices 1, 2, ... , n. We
have n∑k=1akjk=n∑k=1((k−1)n+jk)=nn∑k=1(k−1)+n∑k=1jk. But n∑k=1jk=n(n+1)2
since j1,j2,...,jn is a permutation of indices 1, 2, ... , n. It follows
that n∑k=1akjk=n(n2+1)2.