International Mathematical Olympiad 1971 Problem 6
Let be a square matrix whose elements are non-negative integers. Suppose that whenever an element , the sum of the elements in the th row and the th column is . Prove that the sum of all the elements of the matrix is .