2013 USAJMO · Question 2
Problem outline
Fill an rectangular grid with nonnegative integers, where . Values in cells sharing a side must differ by at most . Every cell with no strictly smaller side-neighbour must contain zero. How many fillings satisfy both rules?
Show answer and methods 1 methods
Answer
.
Method 1 Recover the filling from its zero cells
In any legal filling a cell of minimum value must be zero. Let be the nonempty set of all zero cells, and consider a cell marked . A path from it to needs at least steps, since each step can lower the value by at most one.
Whenever the current value is positive it has a smaller neighbour by the second rule. That neighbour has value exactly one less by the first rule. Continue for steps to reach zero. Thus the value in every cell equals its shortest side-step distance to .
Conversely, choose any nonempty set and fill with these shortest distances. Neighbouring distances differ by at most one, by extending a shortest path by a single edge. A positive-distance cell has a smaller neighbour on such a path. The zeros are exactly , so different choices give different fillings. Of the subsets only the empty one is excluded.
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)