Problem 6
Let be a positive integer. A Nordic square is an board containing all the integers from to so that each cell contains exactly one number. An uphill path is a sequence of one or more cells such that: (a) the first cell in the sequence is a valley, meaning the number written is less than all its orthogonal neighbours; (b) each subsequent cell in the sequence is orthogonally adjacent to the previous cell; and (c) the numbers written in the cells in the sequence are in increasing order. Find, as a function of , the smallest possible total number of uphill paths in a Nordic square.
Step 4 of 5: Fill first so is the only valley
Detailed analysis
Place in a cell of , then fill the rest of with so that each new number's cell is adjacent to an already-filled cell (always possible since is connected), and finally fill the remaining cells (outside ) arbitrarily with the larger numbers. Since every outside cell is adjacent only to -cells filled before all outside numbers, and was filled in increasing connected order from , the only valley in the whole board is the cell holding .