2026 AIME I Problem 11
Problem 11 of 15HarderAlgebraProblem-Solving Techniques
The integers from to are placed in some order into an grid of cells with one number in each cell. Let be the number placed in the cell in row and column and let be the sum of the absolute differences between adjacent cells. That is, Find the remainder when the maximum possible value of is divided by
Your answer
Integer from 0 to 999
Show solution
Solution
View the grid as a graph whose edges join adjacent cells. Each edge contributes its larger endpoint value positively and its smaller one negatively, so where is the entry in cell and is the number of neighbors of with smaller entries minus the number with larger entries. Then which is for the interior cells, for the edge cells, and for the corners, and since each edge contributes and
Because By the rearrangement inequality this is maximized by pairing the values farthest from (namely – and – whose deviations total ) with the interior cells, the next values (– and – totaling ) with the edge cells, and – (totaling ) with the corners. Hence
Equality requires every cell holding a value at most to be smaller than all its neighbors and every value at least to be larger, which a checkerboard achieves: put – on the black cells (– on interior blacks, – on edge blacks, – on black corners) and – on the white cells (– on corners, – on edges, – in the interior). Every neighbor pair then compares white over black, so and the answer is
Tagged: optimization · absolute value · extremal argument