CUMO November 2026

Problem 6

Difficulty D 9.5

Problem

Let be a positive integer. Each cell of the infinite hexagonal grid contains a non-negative integer number of grains of sand, so that the numbers in any two cells sharing an edge differ by at most . Exactly cells contain sand, and all other cells are empty.

Prove that there are at most grains of sand in total.

Solution

Proof

Equality. The bound is attained by the hexagonal cone: fix a cell and put grains on every cell at distance from . We show at the end that this is the only extremal pile up to translation.

Coordinates. Identify the cells with so that the six neighbours of are The row is the set of cells with second coordinate . For a finite set of cells, denotes together with all neighbours of its cells. Put ; this is the number of cells at distance at most from a given cell, and .

Step 1 (layers). For let be the set of cells holding at least grains. Then

Proof. The total amount of sand is , and . If a cell holds at least grains, each neighbour holds at least , which is (1).

Step 2 (the key inequality). Every finite nonempty set of cells satisfies

Note that for the hexagon of radius both sides equal , since . We prove in Step 4.

Step 3 ( finishes the problem). for , and the total is at most .

Proof. Induction on ; the case is given. Suppose with , but . Then , and by (1) and , a contradiction. Hence . Moreover : a cell of together with its six neighbours would lie in by (1). Therefore the total is

Step 4 (proof of by counting rows).

Let be the number of cells of in row , and the number of cells of in row . Write for the set of with .

Row of contains , the set (upper neighbours of row ) and (lower neighbours of row ). For a finite nonempty we have and (look at and ). Hence, with , for and , and so . The quantity depends only on the finite sequence .

Removing empty rows. Suppose while has cells both below and above row . Deleting the entry from the sequence (closing the gap) does not change and does not increase :

  • If too, only the term can grow, by at most , which is exactly the deleted term (similarly if ).
  • If , the deleted term is . The term can grow only if , and then by less than ; in that case does not grow. The situation is symmetric, so the total growth is less than .

So we may assume the nonempty rows are , with . Then

Two lines of slope . Let be a longest row. Put For we have , and . So for , For , . Hence for every , and symmetrically for every . Also and . Since ,

Optimising. Put and . Using , The numbers are symmetric about , so the convex even function is smallest at , where it equals . With , so that , we get by maximising the quadratic in . Thus , and by (2), . Therefore which is .

Equality case. If the total is , then for . For , gives , so (1) forces . As is a single cell, is the ball of radius around it, and the pile is the hexagonal cone. Conversely the cone is admissible, since the distances to of adjacent cells differ by at most , and it holds grains.

Solved it another way? Send a written solution to [email protected]. The most interesting solution, with the solver's name, will be posted.