MathDB
Matrices with defined property

Source: Iran TST 2013:TST 2,Day 1,Problem 1

April 23, 2013
functionlinear algebramatrixcombinatorics proposedcombinatorics

Problem Statement

Nonnegative real numbers p1,,pnp_{1},\ldots,p_{n} and q1,,qnq_{1},\ldots,q_{n} are such that p1++pn=q1++qnp_{1}+\cdots+p_{n}=q_{1}+\cdots+q_{n} Among all the matrices with nonnegative entries having pip_i as sum of the ii-th row's entries and qjq_j as sum of the jj-th column's entries, find the maximum sum of the entries on the main diagonal.