2008 OIM Problems/Problem 1

Revision as of 22:31, 25 March 2025 by Eevee9406 (talk | contribs) (solution)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Problem

Numbers $1, 2, 3, \cdots , 2008^2$ were distributed on a $2008 \times 2008$ board, such that in each box there is a different number. For each row and each column of the board, the difference between the largest and smallest of its elements is calculated. Let $S$ be the sum of the 4016 numbers obtained. Determine the largest possible value of $S$.

~translated into English by Tomas Diaz. ~orders@tomasdiaz.com

Solution

We claim that the largest possible $S$ is $\boxed{4014\cdot2008^2}=16184704896$. First, we show that such an arrangement is possible:

Begin at the bottom-left corner and place a $1$. Continue along the board's diagonal placing a number one greater than the previous number. Then, place a $2008^2$ at the top-left corner, and continue along this diagonal, at each box placing a number one less than the previous number. By construction, every number just described is the smallest/largest in both its row and its column, so each is counted twice; thus, here $S$ is: S=2(20082+(200821)++(200822007))2(1+2++2008)=2((200822008)+(2008212007)+(2008222006)++(2008220071))=2(2008(200822008))=2200820082007=401420082 Since each number can only be the smallest in two differences (that of its row and column), and since the subtracted numbers are the smallest possible integers and the added numbers are the largest possible integers, we are done.

~ eevee9406

See also

OIM Problems and Solutions