I came across this question and was wondering how it could be proven.
Find all pairs $(m,n)$ of positive integers for which there exists an $m\times n$ matrix $A$ and an $n\times m$ matrix $B$, both with real entries, such that all diagonal entries of $AB$ are positive and all off-diagonal entries are negative.
I have no idea how to solve it.