MathLabs

Problem 6

Let A=(aij)A=(a_{ij}) (i,j=1,2,…,ni,j=1,2,\ldots,n) be a square matrix whose elements are nonnegative integers. Suppose that whenever aij=0a_{ij}=0, the sum of the elements in the iith row and the jjth column is at least nn. Prove that the sum of all elements of the matrix is at least n2/2n^2/2.
Step 2 of 7: Handle a full zero diagonal
k=n  ⟹  2S=∑i=1n(ri+ci)≥n2  ⟹  S≥n2/2k=n\implies 2S=\sum_{i=1}^n(r_i+c_i)\ge n^2\implies S\ge n^2/2
Detailed analysis

Let S=∑i,jaijS=\sum_{i,j}a_{ij} and let ri,cir_i,c_i denote row and column sums. If k=nk=n, the hypothesis applied to every diagonal zero gives ri+ci≥nr_i+c_i\ge n. Summing yields 2S=∑i(ri+ci)≥n22S=\sum_i(r_i+c_i)\ge n^2, hence S≥n2/2S\ge n^2/2.