The correct option is B n(n+1)2
If we denote by aij the number in the ith row and jth 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 permulation 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